redux-async-connect
redux-async-connect copied to clipboard
IE10 - Unable to get property 'store' of undefined or null reference
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?
My guess is that you need proto-to-assign in your babel config.
https://babeljs.algolia.com/docs/advanced/caveats/ https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-proto-to-assign
I have these problems too
@magicae I made a pull request to fix this. Hope it will get merged... https://github.com/Rezonans/redux-async-connect/pull/64
@sars any thoughts on this pull request?
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?