Initial value in redux slice not getting updated

33 views Asked by At

I have a redux slice

export const initialState = { name:"", age:"" }

I want to add place:"" to my initialState. But in my localstorage persist:root even after adding export const initialState = { name:"", age:"" ,place:""} I am not able to see place in persist:root.

In incognito it works. And if i manually clear localstorage then also it works but not getting updated by default.

tried change persist config etc. Nothing seems to be working untill we clear localstorage manually

0

There are 0 answers