Slices + persist
Simoon-F opened this issue · 2 comments
Simoon-F commented
In this example, if I only want to store countSlice , can it be adjusted like this?
const useCountStore = create()((...config) => ({
...devtools(persist(withSlices(countSlice), { name: 'foo' }))(...config),
...withSlices(textSlice)(...config),
}));
dai-shi commented
I don't think it works. Did you try?
You should use partialize
option with persist
.