diff --git a/packages/react-router/modules/StaticRouter.js b/packages/react-router/modules/StaticRouter.js index ae176c6e12..1a3d938614 100644 --- a/packages/react-router/modules/StaticRouter.js +++ b/packages/react-router/modules/StaticRouter.js @@ -52,7 +52,7 @@ function noop() {} */ class StaticRouter extends React.Component { navigateTo(location, action) { - const { basename = "", context } = this.props; + const { basename = "", context = {} } = this.props; context.action = action; context.location = addBasename(basename, createLocation(location)); context.url = createURL(context.location);