getting store null in connectedRouter
umairfarooq44 opened this issue · comments
Umair Farooq commented
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); }`
Tim Dorr commented
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!