File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ Router.run(routes, function (Handler) {
90
90
});
91
91
```
92
92
93
- Sample data fetching using ` state.matches ` . Check out the
93
+ Sample data fetching using ` state.routes ` . Check out the
94
94
[ async-data] [ 2 ] example.
95
95
96
96
``` js
@@ -109,12 +109,12 @@ var SampleHandler = React.createClass({
109
109
Router .run (routes, Router .HistoryLocation , function (Handler , state ) {
110
110
111
111
// create the promises hash
112
- var promises = state .matches .filter (function (match ) {
112
+ var promises = state .routes .filter (function (route ) {
113
113
// 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 ) {
116
116
// 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 );
118
118
return promises;
119
119
}, {});
120
120
You can’t perform that action at this time.
0 commit comments