does not support multiple state setter in local storage
skyrocketeer opened this issue · 0 comments
skyrocketeer commented
let say I have a button that will set multiple states when being clicked:
const handleMultipleState = () => {
setCount2(count2 + 1)
setCount(count - 1)
}
On UI (recoil state), the states are being mutated as an expected behavior. However, when you look into local storage, only the first state being persisted (in this case 'count2')