Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Reimplement browser navigation protection #30

Closed
dxinteractive opened this issue Jan 3, 2017 · 1 comment
Closed

Reimplement browser navigation protection #30

dxinteractive opened this issue Jan 3, 2017 · 1 comment

Comments

@dxinteractive
Copy link
Collaborator

dxinteractive commented Jan 3, 2017

Version 3 uses setRouterLeaveHook. Version 4 uses a combination of their own <Prompt> component (https://reacttraining.com/react-router/core/api/Prompt) and Router.getUserConfirmation, which probably wont meet our needs yet: remix-run/react-router#4635

@dxinteractive
Copy link
Collaborator Author

Used react router's history directly which works great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant