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
Changing URL without rerender #2335
Comments
what do you mean by "silent change to the URL"? when you change the URL you are mounting/rendering a new component. |
@adamscybot please describe what you are trying to do (what is your use case) |
This details it better: http://stackoverflow.com/questions/26239154/react-router-update-url-hash-without-re-rendering-page However, the answer for 1.0 is no longer relevant due to the new history module I believe... |
Why do you need to prevent a re-render for that sort of use case? Route changes don't trigger components to unmount if the component itself doesn't change. For something like the carousel example I'd actually just use the route (or an attached store w/e.g. redux-router) as my source of truth. |
With the new history.pushState API, how can I transition to a URL without triggering a rerender? I.e. a silent change to the URL. I found various resources on how to do this online, but all were for old versions.
The text was updated successfully, but these errors were encountered: