Skip to content
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 custom redirect in pessimistic Edit or Create when using warnWhenUnsavedChanges (new approach) #8882

Merged
merged 3 commits into from
May 5, 2023

Conversation

slax57
Copy link
Contributor

@slax57 slax57 commented May 4, 2023

Fix #8819

Supersedes #8859

The idea is that changing the way the save side-effects should be called is a BC.
Instead, this PR aims at fixing the useWarnWhenUnsavedChanges hook.

The fix is working well (tested manually and with Jest).
However it does seem a bit hacky, so let's discuss!

@slax57 slax57 added the RFR Ready For Review label May 4, 2023
@djhi djhi added the fix label May 5, 2023
Copy link
Contributor

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@djhi djhi added this to the 4.10.2 milestone May 5, 2023
@djhi djhi merged commit 257ab0b into master May 5, 2023
@djhi djhi deleted the warnWhenUnsavedChanges-isSubmitting-fix branch May 5, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redirect and warnWhenUnsavedChanges don't work together
2 participants