-
Notifications
You must be signed in to change notification settings - Fork 50
Date being SAVEd is not fully the same data being LOADed. #171
Description
Apologies if this is deemed a duplicate issue, but I felt my case was different enough from some of the other similar issues people were experiencing.
I have a strange issue. I am using redux-storage to store to the device in react-native. In attempting to save some data in a large ImmutableJS object, I can create a reducer and query for the data on action REDUX_STORAGE_SAVE which looks like this:
[ { id: 49, status: 'COMPLETE', status_set: '2016-10-20T16:37:51.516385Z' } ]
The change to that data is the additions of the status_set property. After saving, if I continue to do things in the app, the state remains as reflected above.
If I then reload the application, it loads data from storage storageEngine.load(store) I get:
[ { id: 49, status: 'COMPLETE' } ]
To further confuse, if I change the status in this example so on REDUX_STORAGE_SAVE it looks like:
[ { id: 49, status: 'INCOMPLETE', status_set: '2016-10-20T16:37:51.516385Z' }
After loading I get:
[ { id: 49, status: 'INCOMPLETE' } ]
So it is ok with updating a field, but not adding a new one? There are so many other places we add new fields, etc. and they all work.
I am using the following redux-storage libraries:
redux-storageredux-storage-decorator-debounceredux-storage-engine-reactnativeasyncstorageredux-storage-merger-immutablejsredux-storage-decorator-filterI use a bunch of white/black listing here, this particular state tree is entirely in the white list.redux-storage-decorator-migrateThere are not migrations yet it should be noted.
Really stuck on this and could use any insight into how I can further debug the issue!