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
To be able to return the normalized (entities) results in the redux-saga-thunk promise the entities middleware needs to be before the redux-saga-thunk middleware. Otherwise the entities middleware isn't called until after the redux-saga-thunk middle returns results.
Ideally we could add a check that would warn if the middlewares were out of order.
The following code examples are from a project using URM that I updated to get the entities values in promise returned from action request.
Previous (Not Working)
exportdefault[ReduxSagaThunk,ReduxThunk,routerMiddleware(browserHistory),// NOTE: ^^-- above reducers must be first and in order// redux-modulesentities,];
Updated (Working)
exportdefault[// redux-modulesentities,// following middleware must be in this orderReduxSagaThunk,ReduxThunk,routerMiddleware(browserHistory),];
The text was updated successfully, but these errors were encountered:
To be able to return the normalized (entities) results in the redux-saga-thunk promise the entities middleware needs to be before the redux-saga-thunk middleware. Otherwise the entities middleware isn't called until after the redux-saga-thunk middle returns results.
Ideally we could add a check that would warn if the middlewares were out of order.
The following code examples are from a project using URM that I updated to get the entities values in promise returned from action request.
Previous (Not Working)
Updated (Working)
The text was updated successfully, but these errors were encountered: