We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, this hook uses the useState hook for state management. When a state of key is updated, it's not reflected in other states of the same key.
useState
cost [user, userDispatch] = useLocalStorage('user') cost [user2, user2Dispatch] = useLocalStorage('user') userDispatch.reset(); // updates the user, not user2
To resolve this we can use redux instance if a project is using redux for their state management.
The text was updated successfully, but these errors were encountered:
prakashchokalingam
No branches or pull requests
Currently, this hook uses the
useState
hook for state management. When a state of key is updated, it's not reflected in other states of the same key.To resolve this we can use redux instance if a project is using redux for their state management.
The text was updated successfully, but these errors were encountered: