Skip to content
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

How to clear states stored in localstorage. #18

Open
karthik-hr opened this issue Dec 3, 2020 · 2 comments
Open

How to clear states stored in localstorage. #18

karthik-hr opened this issue Dec 3, 2020 · 2 comments

Comments

@karthik-hr
Copy link

Is there a way i can clear states stored in local-storage for a specific logic by calling an kea action

@mariusandra
Copy link
Member

Hey, unfortunately not. If be happy to merge a PR with something like that though

@paolodamico
Copy link

You could just set your reducer to null or undefined (unless you want to clear localStorage without clearing your current reducer).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants