redux-remember
redux-remember copied to clipboard
How do I wipe the persisted values?
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.