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 (pmndrs#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 <[email protected]> * prettier run --------- Co-authored-by: Danilo Britto <[email protected]> Co-authored-by: Daishi Kato <[email protected]>
- Loading branch information