aerogear / offix

GraphQL Offline Client and Server
https://offix.dev
Apache License 2.0
758 stars 45 forks source link

Provide a way to clear the cache #159

Closed StephenCoady closed 5 years ago

StephenCoady commented 5 years ago

Bug Report

We currently do not expose any way to effectively clear the application cache.

We should investigate which option is best. We could use persistor.purge().

JannesV commented 5 years ago

I really need this, when a user logs out the cache should be cleared but now there is no way for me to do so.

wtrocki commented 5 years ago

@JannesV Thank for letting us know. I will action this instantly and we going to include this in next release.

wtrocki commented 5 years ago

For the moment as a workaround you can remove index-db instances directly from the application

JannesV commented 5 years ago

@wtrocki Thanks for the quick response. I currently use the workaround mentioned above. Looking forward to your solution!

wtrocki commented 5 years ago

I will provide notification when this change will be released