Skip to content

Commit f240f47

Browse files
committed
Move clarifying comment to the line it refers to
1 parent 3be4f54 commit f240f47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/guides/overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,12 @@ handler [in the `master-detail` example](https://github.com/rackt/react-router/b
360360
If you would rather force route handlers to re-mount when transitioning between dynamic segments, you can assign a unique key to your route handler component to bypass this optimization:
361361

362362
```js
363-
// assuming App is top-level route
364363
var App = React.createClass({
365364

366365
mixins: [Router.State],
367366

368367
getHandlerKey: function () {
369-
var childDepth = 1;
368+
var childDepth = 1; // assuming App is top-level route
370369
var key = this.getRoutes()[childDepth].name;
371370
var id = this.getParams().id;
372371
if (id) { key += id; }

0 commit comments

Comments
 (0)