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
So as far as I understood, applyMiddleware's (and any store enhancer's) signature is (createStore) => createStore, while createStore is assuming (createStore) => (reducer, preloadedState).
Which one should be the correct one? I would assume (createStore) => createStore.
The text was updated successfully, but these errors were encountered:
fourlastor
changed the title
Possible error in applyMiddlewares
Possible error in applyMiddlewares/createStore
Jan 12, 2017
I was checking out the source code for https://github.com/reactjs/redux/blob/master/src/applyMiddleware.js#L20 and https://github.com/reactjs/redux/blob/master/src/createStore.js#L50 and noticed one thing:
So as far as I understood,
applyMiddleware
's (and any store enhancer's) signature is(createStore) => createStore
, whilecreateStore
is assuming(createStore) => (reducer, preloadedState)
.Which one should be the correct one? I would assume
(createStore) => createStore
.The text was updated successfully, but these errors were encountered: