Closed karelbilek closed 7 years ago
that is curious, code looks correct. The only thing I can think of that is "atypical" is not using combineReducers
. Still I would expect this to work.
I will try to give your code a run at some point in the future. In the meantime I might suggest adding combineReducers
and see if that helps, or debugging persistStore to see what happens when it receives the state subscription.
I copy-pasted the code from online examples. :)
I will try the combineReducers then
combineReducers doesn't help, it still doesn't work.
I will look at persistStore
I am trying to use redux-persist with redux-action-buffer, but it doesn't seem to be working as described in the documentation.
My simple example is as follows:
According to redux-persist documentation and redux-action-buffer documentation, this should work. Yet it doesn't and nothing is saved to localstorage.
If I change the store.dispatch code to run inside the callback, as in
it seems to be working; but in that case, the
redux-action-buffer
is not doing what it should and it doesn't actually buffer anything.I am beginning with Redux so I might be missing something. :)