-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgrest-provider not called any more for an update after the ReactAdmin 4 → 5 upgrade #10388
Comments
Hi, and thanks for your question. For support question ("How To", usage advice, or troubleshooting your own code), you have three options:
So I'm closing this issue, and inviting you to ask your question in one of the support channels above. |
For other people how would access this issue. We fixed the problem by applying this patch: -<EditBase>
+<EditBase mutationMode="pessimistic"> Related links: |
Finally, the root cause was our custom notification component:
The bug disappears when removing it. |
What you were expecting:
update()
method of the provider should be calledWhat happened instead:
Steps to reproduce:
Related code:
We have added some log to the provider :
When we use the create form we have, the following output:
And we can see the POST query in the network panel. The record is created.
But when on an edit page, we don't have any log for the provider, and we don't see any PATCH query sent to the backend.
What is weird is that we have the notifcation "Element updated" as if all was successful.
If we manually add an handler for the submit :
Then is update is done and we can see the PATCH query.
Other information:
Environment
5.3.3
4
18.3.1
We don't have a minimal reproducer for now. But where to look to debug this issue?
The text was updated successfully, but these errors were encountered: