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
{{ message }}
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
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
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 thesetState
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
touse-local-storage-state
:The text was updated successfully, but these errors were encountered: