brocoders / redux-async-connect

It allows you to request async data, store them in redux state and connect them to your react component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IE10 - Unable to get property 'store' of undefined or null reference

badtant opened this issue · comments

Hi,

I have some problems with IE10.
return this.context.store... gets Unable to get property 'store' of undefined or null reference.

_createClass(ReduxAsyncConnect, [{
        key: 'isLoaded',
        value: function isLoaded() {
          return this.context.store.getState().reduxAsyncConnect.loaded;
        }
}]);

I'm using babel 6 with the config below aswell as babel-polyfill for promises.

{
    'presets': [
        'react',
        'es2015'
    ],
    'plugins': [
        'transform-object-rest-spread',
        'transform-decorators-legacy'
    ]
}

Any idea of what might be wrong?

I have these problems too

@magicae I made a pull request to fix this. Hope it will get merged...
#64

@sars any thoughts on this pull request?

commented

Problem solved using @badtant 's suggestion.

I am facing the same issue, when can we expect the fix?

try using https://github.com/makeomatic/redux-connect - I've refactored this module (v1 branch), as well as updated API a bit. Constraints are loosened to allow react 15.x.x as well.

npm i redux-connect -S

@AVVS it's amazing, what you did?