Closed jkhoel closed 7 years ago
It seems that const middleware = applyMiddleware(promise(), thunk, logger())
const middleware = applyMiddleware(promise(), thunk, logger())
needs to be written as const middleware = applyMiddleware(promise, thunk, logger)
const middleware = applyMiddleware(promise, thunk, logger)
for your example code to work
@jkhoel that would break things. promise and logger middleware need to be instantiated/created first.
It seems that
const middleware = applyMiddleware(promise(), thunk, logger())
needs to be written as
const middleware = applyMiddleware(promise, thunk, logger)
for your example code to work