We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1494a7b + 2336a9f commit 6e31636Copy full SHA for 6e31636
src/applyMiddleware.js
@@ -17,8 +17,8 @@ import compose from './compose'
17
* @returns {Function} A store enhancer applying the middleware.
18
*/
19
export default function applyMiddleware(...middlewares) {
20
- return (next) => (reducer, initialState) => {
21
- var store = next(reducer, initialState)
+ return (createStore) => (reducer, initialState) => {
+ var store = createStore(reducer, initialState)
22
var dispatch = store.dispatch
23
var chain = []
24
0 commit comments