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.
1 parent d5da1df commit 0aa30c1Copy full SHA for 0aa30c1
UPGRADE_GUIDE.md
@@ -186,19 +186,20 @@ yourself:
186
var App = React.createClass({
187
mixins: [ Router.State ],
188
189
- handlerKey: function () {
+ getHandlerKey: function () {
190
// this will all depend on your needs, but here's a typical
191
// scenario that's pretty much what the old prop did
192
var childDepth = 1; // have to know your depth
193
var childName = this.getRoutes()[childDepth].name;
194
var id = this.getParams().id;
195
var key = childName+id;
196
+ return key;
197
},
198
199
render: function () {
200
return (
201
<div>
- <RouteHandler key={this.handlerKey()} />
202
+ <RouteHandler key={this.getHandlerKey()} />
203
</div>
204
);
205
}
0 commit comments