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 f7c8e56 commit 3ccbd19Copy full SHA for 3ccbd19
packages/react-router/modules/StaticRouter.js
@@ -52,7 +52,7 @@ function noop() {}
52
*/
53
class StaticRouter extends React.Component {
54
navigateTo(location, action) {
55
- const { basename = "", context } = this.props;
+ const { basename = "", context = {} } = this.props;
56
context.action = action;
57
context.location = addBasename(basename, createLocation(location));
58
context.url = createURL(context.location);
0 commit comments