Array default values #103
Comments
Hi! Could you provide me some example code? I've tried to reproduce this problem but with no success. For me everything looks and behaves as is should ... |
Maybe I use it wrong, but
|
Hm .. strange. Would it be possible for you to inspect the state of the engine right BEFORE you trigger the load action? This depends on the engine in use but for redux-storage-engine-localstorage the output of: console.log(store.getState());
console.log(localStorage.getItem(key)); would be very interesting! |
Ok. It's my store.js now.
|
Could you also please paste the result of And a last question: in which browsers have you tested this? |
I use Meteor 1.2.1, it's I don't spend a lot of time, but quickly looked at your code. Are you use lodash |
redux-storage-merger-simple is the default merger used by redux-storage. Please have a look at it and create a issue there with some code to reproduce this issue. I'm closing this issue here now, as a) it's no longer related to the code in this repository and b) I'm still unable to reproduce this :( |
Hi! I have a test reducer:
myReducer = (state = { arr: [1, 2, 3] }, action) => action.type == 'TEST' ? { arr: [5] } : state
It's save to store correctly after dispatch:
{ arr: 5 }
But after load it's has a value
{ arr: [5, 2, 3] }
.Lo-dash
_.merge
problem.The text was updated successfully, but these errors were encountered: