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 9c72ce0 + 3330b2a commit 2a814f9Copy full SHA for 2a814f9
docs/guides/overview.md
@@ -371,8 +371,8 @@ var App = React.createClass({
371
getHandlerKey: function () {
372
var childDepth = 1; // assuming App is top-level route
373
var { router } = this.context;
374
- var key = router.getRoutes()[childDepth].name;
375
- var id = router.getParams().id;
+ var key = router.getCurrentRoutes()[childDepth].name;
+ var id = router.getCurrentParams().id;
376
if (id) { key += id; }
377
return key;
378
},
0 commit comments