I'am using redux store in my reactjs project.my redux is working properly but when i refresh the browser page my redux store goes empty. is there any way to avoid this.
Asked
Active
Viewed 1,302 times
0
-
1That's how all SPA works. U can use `redux-persist` or `redux-storage` – demkovych Jul 23 '20 at 08:29
1 Answers
1
redux
is used to manage your local state, it doesn't persist the state in local storage, that's why state gets empty when you refresh the page. You can use redux-persist
to store the state permanently in local storage of browser.

Muhammad Ali
- 2,538
- 2
- 16
- 21