Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Use more actively maintained persisted state library #824

Closed
danielcolinjames opened this issue Jan 21, 2022 · 0 comments
Closed

Use more actively maintained persisted state library #824

danielcolinjames opened this issue Jan 21, 2022 · 0 comments

Comments

@danielcolinjames
Copy link
Contributor

it appears that the library we're using for persisting state (use-persisted-state) isn't being very actively maintained and I've started to run into issues with it in local development. just spent at least an hour trying to figure out this bug: donavon/use-persisted-state#56 and the best solution appears to be wrapping the setState function in a try/catch...

making an issue because I don't want to add more complexity to the PR where I ran into this (#780), but don't want to forget this later

a viable alternative library appears to be this one: https://www.npmjs.com/package/use-local-storage-state

a couple examples of other people switching from use-persisted-state to use-local-storage-state:

@madninja madninja closed this as completed Nov 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants