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 9650f04 + 72ae943 commit 9ffeda7Copy full SHA for 9ffeda7
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 (createStore) => (reducer, initialState) => {
21
- var store = createStore(reducer, initialState)
+ return (createStore) => (reducer, initialState, enhancer) => {
+ var store = createStore(reducer, initialState, enhancer)
22
var dispatch = store.dispatch
23
var chain = []
24
0 commit comments