Skip to content

Commit 76438f9

Browse files
committed
Add getActiveRoute
1 parent 8113a0b commit 76438f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/mixins/TransitionHandler.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,13 @@ var TransitionHandler = {
411411
*/
412412
getHandlerProps: function () {
413413
return computeHandlerProps(this.state.matches, this.state.activeQuery);
414+
},
415+
416+
/**
417+
* Returns a reference to the active route handler's component instance.
418+
*/
419+
getActiveRoute: function () {
420+
return this.refs.__activeRoute__;
414421
}
415422

416423
};

0 commit comments

Comments
 (0)