-
Notifications
You must be signed in to change notification settings - Fork 18
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
useLocalStorageReducer state by default is undefined #8
Comments
Hi @AdamSalma, thanks for reporting! Let me see if I'm understanding this: the key in your storage has no value and you're getting |
@AdamSalma This should be fixed in version 4.0.0 that I've just published, so I'm closing this issue. Feel free to reopen if it keeps happening. |
This initially logs
state
asundefined
a few times until dispatch is called, which is causing unexpected behaviour with my code.Is this intentional?
The text was updated successfully, but these errors were encountered: