0

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.

vijay kasar
  • 145
  • 1
  • 12

1 Answers1

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