You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm using react-router dom in order to navigate through my web app but if I change the URL manually I lose my state. I think because every time the URL is changed manually it causes a refresh of the page and because the state is not persisted I lose everything. My question at this point will be: there is a way to don't lose the state even if the URL is changed manually without persist the state in the localstorage? Or in other words is there a way to prevent the refresh of a page if the URL is changed manually by the user?
Thanks to every one will replay.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm using react-router dom in order to navigate through my web app but if I change the URL manually I lose my state. I think because every time the URL is changed manually it causes a refresh of the page and because the state is not persisted I lose everything. My question at this point will be: there is a way to don't lose the state even if the URL is changed manually without persist the state in the localstorage? Or in other words is there a way to prevent the refresh of a page if the URL is changed manually by the user?
Thanks to every one will replay.
PS: I use Zustand as react state manager
Beta Was this translation helpful? Give feedback.
All reactions