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
I debugged and found that the middleware is initializing both reducers with the two documents (wallets and tags) in pouchdb. As these are synchronous actions both end with reducer in the same state.
The next code change in persistentObjectReducer fixes this issue.
Hi,
The state of my reducers is overridden with one of the reducers state if there is more than one persistent reducer.
This is what I have in my root reducer:
I debugged and found that the middleware is initializing both reducers with the two documents (wallets and tags) in pouchdb. As these are synchronous actions both end with reducer in the same state.
The next code change in persistentObjectReducer fixes this issue.
I added the condition to prevent the reducer from being wrongly initialized.
If you feel this code doesn't have any implications in the rest of the library I can create a PR.
The text was updated successfully, but these errors were encountered: