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

client.resetStore() clears localStorage #15

Open
omniteq opened this issue Mar 26, 2020 · 0 comments
Open

client.resetStore() clears localStorage #15

omniteq opened this issue Mar 26, 2020 · 0 comments

Comments

@omniteq
Copy link

omniteq commented Mar 26, 2020

Thank you for that great library! It's very useful.

For some reason, apollo-cache-instorage clears localStorage when I call client.resetStore() after a user logs in. I can see it's related to objectStorageCache.clear() method.

Is it intended behavior? Seem unintuitive to me, but I'm sure there is an explanation.

Thanks

@omniteq omniteq changed the title objectStorageCache.clear clears localStorage keys without a prefix client.resetStore() clears localStorage Mar 26, 2020
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

1 participant