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

[v6] history.block() replacement? #8216

Closed
yanickrochon opened this issue Nov 4, 2021 · 1 comment
Closed

[v6] history.block() replacement? #8216

yanickrochon opened this issue Nov 4, 2021 · 1 comment

Comments

@yanickrochon
Copy link

The migration guide from v5 to v6 does not mention how to replace history.block. We are using this in a custom hook to prevent page navigation when a form is dirty. What is the migration from this function now that useHistory has been replaced?

@timdorr
Copy link
Member

timdorr commented Nov 4, 2021

Duplicate of #8139

@timdorr timdorr marked this as a duplicate of #8139 Nov 4, 2021
@timdorr timdorr closed this as completed Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants