-
-
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
Fix the Refresh of Lists when an optimistic update fails #4179
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one. Could you add test ? Please.
You must also remove the call to the |
@fzaninotto I'm calling |
Right, but then with your patch there will still be two refreshes in case of optimistic error. So the right way to fix this bug is to add a refresh as onFailure side effect in the save function of useEditController and useCreateController. |
4d24f30
to
feeb0e0
Compare
I didn't add a refresh in |
Closes #3244 |
Thanks! |
hm, this PR, once merged to master, breaks the e2e tests. I'll take a look. |
Fixed in b232120 |
Fixes #4176