-
-
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
Upgrade react-router
to 6.22.0, use data router, stabilize useWarnWhenUnsavedChanges
and remove <Admin history>
prop
#9657
Conversation
react-router
to 6.22.0, use data router and stabilize useWarnWhenUnsavedChanges
react-router
to 6.22.0, use data router, stabilize useWarnWhenUnsavedChanges
and remove <Admin history>
prop
…in pessimistic mode
needs rebase |
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.
46/114 files reviewed. So far, it's excellent, kudos!
packages/ra-core/codemods/__testfixtures__/replace-Admin-history-useEditController.input.tsx
Show resolved
Hide resolved
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.
Finished my review. I only have a few questions and nitpicks. This PR is great!
By the way, you forgot one remaining MemoryRouter in BulkUpdateButton.stories.tsx
Todo
react-router
to 6.22.0useWarnWhenUnsavedChanges
to useuseBlocker
instead ofUNSAFE_NavigationContext
useWarnWhenUnsavedChanges
history
prophistory
history
Technical notes
'beforeunload'
event. Modern browsers no longer allow to customize the message displayed in the confirmation dialog, so we can only display the default one.