Skip to content

Commit 08e9828

Browse files
committed
Update docs
1 parent 9da96b4 commit 08e9828

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/api/run.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Router.run(routes, function (Handler) {
9090
});
9191
```
9292

93-
Sample data fetching using `state.matches`. Check out the
93+
Sample data fetching using `state.routes`. Check out the
9494
[async-data][2] example.
9595

9696
```js
@@ -109,12 +109,12 @@ var SampleHandler = React.createClass({
109109
Router.run(routes, Router.HistoryLocation, function (Handler, state) {
110110

111111
// create the promises hash
112-
var promises = state.matches.filter(function (match) {
112+
var promises = state.routes.filter(function (route) {
113113
// gather up the handlers that have a static `fetchData` method
114-
return match.route.handler.fetchData;
115-
}).reduce(function (promises, match) {
114+
return route.handler.fetchData;
115+
}).reduce(function (promises, route) {
116116
// reduce to a hash of `key:promise`
117-
promises[match.route.name] = match.route.handler.fetchData(state.params)
117+
promises[route.name] = route.handler.fetchData(state.params);
118118
return promises;
119119
}, {});
120120

0 commit comments

Comments
 (0)