rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.94k stars 866 forks source link

What if flush called after pause? #1385

Open gen1lee opened 2 years ago

gen1lee commented 2 years ago

How it will work if I call: 1) pause 2) logout action (clear state from user data) 3) call flush

Will it persist something? If yes, will it persist state before pause or after?

In what order should these function be called to remove everything and don't allow to write anything after? For other async action creators for example.

I think docs should be updated with that.