We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add a state with URL Hash using persist middleware accepts custom storage like hashStorage.
persist
The text was updated successfully, but these errors were encountered:
I work on this. Thank you!
Sorry, something went wrong.
Hey @guymoon, thanks for this example that looks interesting on the zustand docs page.
Do you have any idea why it doesn't work even in this codesandbox example? When we refresh page url hash just updates to the initial state.
UPD: Figured out that it's because of lack JSON.parse on getItem. Opened PR here with fix - #1800
JSON.parse
getItem
Successfully merging a pull request may close this issue.
Discussed in #1251
Add a state with URL Hash using
persist
middleware accepts custom storage like hashStorage.The text was updated successfully, but these errors were encountered: