Open nikhil4326 opened 6 years ago
Yes I think there is some confusion and I am all ears for how to clear it up. If you use persistCombineReducers you should not need to also use persistReducer. They basically do the same thing under the hood, just with slightly different reconciliation strategies.
As per documentation, we can use persistReducer method with first argument as object of transformers array. Like below.
const reducer = persistReducer({transforms: [myTransform]}, baseReducer)
BUT, persistReducer expecting object with key, stoarge and array of transformers. like below:
I have already provided config object to persistCombineReducers method. check below:
Question: is there any thing wrong with my implemetation? If no: Documentation needs to be update.
I think persistReducer should not ask for config object with key and stoarge. As I have already provided to persistCombineReducers method.
Thanks