🦜
persist({
source: foo,
fn: ({ bar }) => bar,
key: 'foo.bar',
storage: localStorage
})
Size: a a a
🦜
m
ф
m
m
ф
m
m
foo: (state, history: History) => ...
m
TZ
history: History -> _history: History🚀🚀
yv
yv
createStore({ foo: "", bar: '', baz: ""}, { stored: [foo, baz]})m
ф
m
const test = withStorage(createStore);
test({ foo: '', bar: ''}, { key: 'store' })
🚀🚀
m
const test = withStorage(createStore);
test({ foo: '', bar: '', baz: ''}, { keys: { foo: 'myFoo', baz: 'myBaz' } })