-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Description
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 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
}
Metadata
Metadata
Assignees
Labels
No labels