-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Update row in list view redirect to first page #5185
Labels
Comments
Reproduced. Thanks for the report |
Hey, |
suffering from this as well, any update? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What you were expecting:
When updating a row using
useUpdate
hook inside a List, triggeronSuccess
, stay on the same page and keep same query paramsWhat happened instead:
After updating a row using
useUpdate
hook:onSuccess
didn't trigger and therefore I could not show a notify that it was updated successfully.Steps to reproduce:
Related code:
Since I can reproduce it in your own demo, I guess the related code is your AcceptButton and RejectButton
https://github.com/marmelab/react-admin/blob/master/examples/demo/src/reviews/AcceptButton.tsx
https://github.com/marmelab/react-admin/blob/master/examples/demo/src/reviews/RejectButton.tsx
Other information:
I kind of saw something similar to what I mention in the past:
#4902
It states that it was fixed so I don't know if indeed it is related or not.
Also, we are using the update feature as inline edit across our whole project so this is kind critical for us to be fixed as soon as possible.
Environment
The text was updated successfully, but these errors were encountered: