You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason we return early when rehydrating if the key doesn't exist? It doesn't seem like the intended functionality, because there is code that exists below that will set it on the store.
The text was updated successfully, but these errors were encountered:
Hey,
I'm wanting to add a key using redux-persist-migrate to hold my migration status. It was not working, so I took a look through the code. The thing that seems to be causing it is https://github.com/rt2zz/redux-persist-immutable/blob/master/src/reconciler.js#L8
It is returning straight away if the key isn't present. However, further down in the same function, there is a test to see if the key is present. https://github.com/rt2zz/redux-persist-immutable/blob/master/src/reconciler.js#L18 which will never be fired, because the function has already returned if that is false.
Is there a reason we return early when rehydrating if the key doesn't exist? It doesn't seem like the intended functionality, because there is code that exists below that will set it on the store.
The text was updated successfully, but these errors were encountered: