Skip to content

Commit

Permalink
changed const to let in applyMiddleware (#2915)
Browse files Browse the repository at this point in the history
changed const to let in applyMiddleware function in Attempt #6
  • Loading branch information
isahgaga authored and markerikson committed Apr 1, 2018
1 parent 8c5fbc1 commit 704f711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/Middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Instead of `applyMiddlewareByMonkeypatching()`, we could write `applyMiddleware(
function applyMiddleware(store, middlewares) {
middlewares = middlewares.slice()
middlewares.reverse()
const dispatch = store.dispatch
let dispatch = store.dispatch
middlewares.forEach(middleware =>
dispatch = middleware(store)(dispatch)
)
Expand Down

0 comments on commit 704f711

Please sign in to comment.