reactjs / react-router-redux

Ruthlessly simple bindings to keep react-router and redux in sync

Home Page:https://www.npmjs.com/package/react-router-redux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getting store null in connectedRouter

umairfarooq44 opened this issue · comments

I am getting store null in connectedRouter. I think there should be a check for store
` functionConnectedRouter() {
var _temp, _this, _ret;

_classCallCheck(this, ConnectedRouter);

for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  args[_key] = arguments[_key];
}

return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.handleLocationChange = function (location) {
  _this.store.dispatch({  // I am getting store null here. Should be a check here 
    type: _reducer.LOCATION_CHANGE,
    payload: location
  });
}, _temp), _possibleConstructorReturn(_this, _ret); }`

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!