Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): errors and types fix for URL state example (#2218)
* Update connect-to-state-with-url-hash.md Resolved a few errors and type errors in the persist and create state with URL example: 1. createJsonStorage not being called in storageOptions resulting in a type error. 2. Correct hook not being exported 3. Moved the creation of initial state inline to get the correct types passed from create/persist. 4. Used state type as generic for persist. * yarn prettier run * Update docs/guides/connect-to-state-with-url-hash.md Better name for state in setter Co-authored-by: Danilo Britto <dbritto.dev@gmail.com> * prettier run --------- Co-authored-by: Danilo Britto <dbritto.dev@gmail.com> Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
- Loading branch information
4be1e9e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
zustand-demo – ./
zustand-demo-pmndrs.vercel.app
zustand-demo-git-main-pmndrs.vercel.app
zustand-demo.vercel.app
zustand-demo.pmnd.rs