Why Curry Redux Middleware: state => next => action {} vs. (state, next) => action {}
问题 After reading both Redux's documentation on middleware and source code on applyMiddleware, I don't understand why middleware need the curry syntax: const logger = store => next => action => { console.log('dispatching', action) let result = next(action) console.log('next state', store.getState()) return result } Couldn't the same thing be achieved by doing const logger = (store, next) => action => { console.log('dispatching', action) let result = next(action) console.log('next state', store