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 680af7d + 5115866 commit 44b0e6aCopy full SHA for 44b0e6a
modules/components/Route.js
@@ -447,8 +447,9 @@ function computeHandlerProps(matches, query) {
447
props.activeRoute = emptyFunction.thatReturnsNull;
448
}
449
450
- childHandler = function (props, addedProps, children) {
451
- return route.props.handler(mergeProperties(props, addedProps), children);
+ childHandler = function (props, addedProps) {
+ var children = Array.prototype.slice.call(arguments, 2);
452
+ return route.props.handler.apply(null, [mergeProperties(props, addedProps)].concat(children));
453
}.bind(this, props);
454
455
match.refName = props.ref;
0 commit comments