Why after page refresh my redux store is empty?

1.5k Views Asked by At

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.

1

There are 1 best solutions below

0
On

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.