How to reset state in Redux?

Forums ReactHow to reset state in Redux?
Staff asked 2 years ago

Answers (1)

Add Answer
Kathiriya Pritam Marked As Accepted
Staff answered 2 years ago

Redux-persist keeps a copy of your state in a storage engine, and the state copy will be loaded from there on refresh.

First, you need to import the appropriate storage engine and then, to parse the state before setting it to undefined and clean each storage state key.

Subscribe

Select Categories