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
This react/redux stuff is getting pretty complicated I must say, when looking at dependencies to solve different issues ( react-router, redux-router, redux-thunk ...) and making them play together is quite a challenge, so here is another one:
I currently use redux-promise-middleware to do promise based async actions. For each action this middleware automatically generates _BEGIN, _SUCCESS, _ERROR actions that are dispatched to the reducer.
This react/redux stuff is getting pretty complicated I must say, when looking at dependencies to solve different issues ( react-router, redux-router, redux-thunk ...) and making them play together is quite a challenge, so here is another one:
I currently use
redux-promise-middleware
to do promise based async actions. For each action this middleware automatically generates_BEGIN
,_SUCCESS
,_ERROR
actions that are dispatched to the reducer.A promise based action looks like this:
Is there a way to combine this with this library so the
_ERROR
ones do the revert, and the_SUCCESS
ones do the commit?The text was updated successfully, but these errors were encountered: