apollo-cache-instorage icon indicating copy to clipboard operation
apollo-cache-instorage copied to clipboard

client.resetStore() clears localStorage

Open omniteq opened this issue 4 years ago • 0 comments

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 avatar Mar 26 '20 15:03 omniteq