-
-
Notifications
You must be signed in to change notification settings - Fork 10.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
Preserve input value states with history #1188
Comments
There's currently no way to make use of the browser's history state object (there are plans though). I'd say the best you can do right now (without some serious effort) is to store the state (indexed by path) yourself in some variable, and persist it using |
the new https://rackt.github.io/react-router/tags/v1.0.0-beta2.html#Router Look at the (also, we'll be writing up a guide on the state feature) |
@ryanflorence how do I change the state for the back/forward browser events? |
Normally (it depends on the caching strategy sending in headers from the server and few other circumstances), when you are changing location in your browser by pressing the link, sending a form or any other way, you can retrieve back all the values of your inputs once you click on the "back" button in your browser.
How do I preserve inputs with react-router when changing browser history from current page to previous?
The text was updated successfully, but these errors were encountered: