Skip to content

Commit 268997c

Browse files
committed
Merge pull request reduxjs#753 from julen/doc-fix
Docs: added a couple of missing definite articles
2 parents a38a244 + 75f097b commit 268997c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/advanced/Middleware.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Middleware
22

3-
You’ve seen middleware in action in the [Async Actions](../advanced/AsyncActions.md) example. If you’ve used server-side libraries like [Express](http://expressjs.com/) and [Koa](http://koajs.com/), you were also probably already familiar with the concept of *middleware*. In these frameworks, middleware is some code you can put between the framework receiving a request, and framework generating a response. For example, Express or Koa middleware may add CORS headers, logging, compression, and more. The best feature of middleware is that it’s composable in a chain. You can use multiple independent third-party middleware in a single project.
3+
You’ve seen middleware in action in the [Async Actions](../advanced/AsyncActions.md) example. If you’ve used server-side libraries like [Express](http://expressjs.com/) and [Koa](http://koajs.com/), you were also probably already familiar with the concept of *middleware*. In these frameworks, middleware is some code you can put between the framework receiving a request, and the framework generating a response. For example, Express or Koa middleware may add CORS headers, logging, compression, and more. The best feature of middleware is that it’s composable in a chain. You can use multiple independent third-party middleware in a single project.
44

55
Redux middleware solves different problems than Express or Koa middleware, but in a conceptually similar way. **It provides a third-party extension point between dispatching an action, and the moment it reaches the reducer.** People use Redux middleware for logging, crash reporting, talking to an asynchronous API, routing, and more.
66

@@ -380,7 +380,7 @@ const timeoutScheduler = store => next => action => {
380380

381381
/**
382382
* Schedules actions with { meta: { raf: true } } to be dispatched inside a rAF loop frame.
383-
* Makes `dispatch` return a function to remove the action from queue in this case.
383+
* Makes `dispatch` return a function to remove the action from the queue in this case.
384384
*/
385385
const rafScheduler = store => next => {
386386
let queuedActions = [];

0 commit comments

Comments
 (0)