learncodeacademy / react-js-tutorials

Code that goes along with my YouTube React JS Series
1.67k stars 1.33k forks source link

Redux Tutorial #6 : Changes to applyMiddleware #43

Closed jkhoel closed 7 years ago

jkhoel commented 7 years ago

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

willrstern commented 7 years ago

@jkhoel that would break things. promise and logger middleware need to be instantiated/created first.