From 8bb4158fb0a014adcdc6ef07865b1a17d2564dfe Mon Sep 17 00:00:00 2001 From: Nikolay Date: Wed, 4 Jan 2017 18:25:45 +0300 Subject: [PATCH] Fixed react-router@3 "Cannot read property 'location' of undefined" https://github.com/ReactTraining/react-router/commit/a76efddfa20945807a422ac88860b7108f0cf4d5 @acdlite without this fix this library won't work with `react-router@3` which is now the default version --- src/ReduxRouter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReduxRouter.js b/src/ReduxRouter.js index 7b65dda..26ab1e8 100644 --- a/src/ReduxRouter.js +++ b/src/ReduxRouter.js @@ -34,7 +34,7 @@ class ReduxRouter extends Component { constructor(props, context) { super(props, context); - this.router = createRouterObject(context.store.history, context.store.transitionManager); + this.router = createRouterObject(context.store.history, context.store.transitionManager, {}); } componentWillMount() {