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
hi, I don't understand here, what's the difference between function (action) => dispatch(action) and function dispatch. They both accept action and return whatever comes from dispatch, right? Can we just write as following? Thanks.
var middlewareAPI = {
getState: store.getState,
dispatch: dispatch
}
The text was updated successfully, but these errors were encountered:
https://github.com/reactjs/redux/blob/master/src/applyMiddleware.js#L27
hi, I don't understand here, what's the difference between function
(action) => dispatch(action)
and functiondispatch
. They both acceptaction
and return whatever comes fromdispatch
, right? Can we just write as following? Thanks.The text was updated successfully, but these errors were encountered: