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

Is there any API to purge stores? #64

Open
PhilTheAir opened this issue Nov 20, 2018 · 2 comments
Open

Is there any API to purge stores? #64

PhilTheAir opened this issue Nov 20, 2018 · 2 comments

Comments

@PhilTheAir
Copy link

Is there any API similar to purgeStoredState from redux-persist? Thanks.

@chrisavery989
Copy link

I've not found anything made availiable through mobex-persit itself but when purging the stores I have been using methods availiable on local forage. https://localforage.github.io/localForage/#data-api-clear.

eg
if(needToPurge) {
localForage.clear().then(() => rehydrate(myStore))
}

@motin
Copy link

motin commented Jun 10, 2019

Similarly in react native: AsyncStorage.clear()

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