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 do I wipe the persisted values? #20

Open
jehillert-ziosk opened this issue Feb 3, 2025 · 0 comments
Open

How do I wipe the persisted values? #20

jehillert-ziosk opened this issue Feb 3, 2025 · 0 comments

Comments

@jehillert-ziosk
Copy link

Redux persist had some helper functions that let you set the store back to it's initial state. I didn't see it in the api so I used this for AsyncStorage thining it would do the same thing.

          const keys = await AsyncStorage.getAllKeys();
          console.log(`${flushMsg}${keys}`);
          await AsyncStorage.multiRemove(keys);

I also tried AsyncStorage.clear()

Somehow that doesn't kill it.

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