Reputation: 153
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.
Upvotes: 0
Views: 1881
Reputation: 2648
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.
Upvotes: 1