Nested store objects not being reset to it's initial state
perkrlsn opened this issue · 2 comments
perkrlsn commented
When using nested objects as part of your store, calling store.reset()
will not reset the nested objects to their respective initial state values.
e.g.
interface SomeStore {
test1: {
value: boolean;
},
test2: boolean;
}
const store = createStore<SomeStore>({
test1: {
value: false,
},
test2: false
});