-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
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
"Uncaught (in promise) TypeError: Cannot read property 'emit' of null" #56
Comments
I got the same error sometimes. Waiting for a workaround |
@szotyi41 I used this to work around the bug:
|
I'm experiencing this issue as well. It only happens with prod builds and not during dev. |
Temporary workaround is to wrap set |
Same happens to me when I setState inside a useEffect hook |
is it possible that this was a regression? i've only just started experiencing this |
Seeing this as well in development when I create multiple persisted states on multiple pages, all with different keys.
EDIT: Because of #36, I am using https://www.npmjs.com/package/use-local-storage-state now. It works. |
when I call the setState in a subsequent useEffect call I get this.
Seems to work, but the next call is not valid.
The text was updated successfully, but these errors were encountered: