reflux / refluxjs

A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux
BSD 3-Clause "New" or "Revised" License
5.36k stars 330 forks source link

str.listen is not support inES6Store in ie9,10 #485

Closed juyulin closed 7 years ago

juyulin commented 7 years ago

The problem is found in defineReact.js. I find str.isES6Store in undefined in proto.componentWillMount, so 'str.singleton = new singleton;' is not covered during the running time

juyulin commented 7 years ago

@maxguzenski

BryanGrezeszak commented 7 years ago

This is an issue with babel.

Babel uses __proto__ to handle static properties on transpiled classes. That is not good for anything less than IE11.

Read more here: https://babeljs.io/docs/usage/caveats/#internet-explorer

Workaround should exist in Reflux v5.0.4 and above that side-steps the issue so that it doesn't come up anymore.

coderdave commented 6 years ago

I'm getting this error in reflux 6.4.1 using react-native 0.50.3 and react 16.1.1. What am I doing wrong?

codeuniquely commented 6 years ago

Also getting the issue in reflux V6.4.1 and react v16.2.0 - just copied the StateStore example from the online docs...

adding this line to my component constructor causes the crash

this.stores = [StatusStore];
EP36 commented 4 years ago

I am getting this issue as well running reflux v6.4.1 and react v16.3.0, same as @codeuniquely

EP36 commented 4 years ago

@BryanGrezeszak any ideas?