Describe the bug
const [,setStore] = makePersisted(createStore({a: 1}), {name: 'x'})
setStore({a: 2}) // trigger storage (because initial values are not persisted)
const [store2, setStore2] = makePersisted(createStore({a: 1, b: 1}), {name: 'x'})
console.log(Object.keys(store2)) // ['a']
I would expect ['a', 'b']
While I'm here: these stores are so useful and convenient! Thanks for this.
Minimal Reproduction Link
https://stackblitz.com/edit/github-cickt7r1?file=src%2Findex.tsx
Describe the bug
I would expect ['a', 'b']
While I'm here: these stores are so useful and convenient! Thanks for this.
Minimal Reproduction Link
https://stackblitz.com/edit/github-cickt7r1?file=src%2Findex.tsx