Skip to content

Commit 615757a

Browse files
committed
Fix the way we call the route handler
1 parent fdc9967 commit 615757a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/components/Route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ function computeHandlerProps(matches, query) {
469469
if (arguments.length > 2 && typeof arguments[2] !== 'undefined')
470470
throw new Error('Passing children to a route handler is not supported');
471471

472-
return route.props.handler.apply(null, mergeProperties(props, addedProps));
472+
return route.props.handler(mergeProperties(props, addedProps));
473473
}.bind(this, props);
474474
});
475475

0 commit comments

Comments
 (0)