redux-persist icon indicating copy to clipboard operation
redux-persist copied to clipboard

What if flush called after pause?

Open gen1lee opened this issue 2 years ago • 0 comments

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.

gen1lee avatar May 18 '22 17:05 gen1lee