vijay kasar
vijay kasar

Reputation: 153

Why after page refresh my redux store is empty?

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

Answers (1)

Muhammad Ali
Muhammad Ali

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

Related Questions