Open tgv1975 opened 6 years ago
also, my observation is that if you use getDerivedStateFromProps the Store will not mix its state into a Reflux Component.
@TwR-Slice This library hasn't been updated in more than a year. I have stopped using it since. Probably worth investigating other Redux solutions.
@tgv1975 Sad to see this lib decay, always liked the simplicity of it.
React 16.4.1 Reflux 6.4.1
On components that extend Reflux.Component, if I use
without implementing componentWillMount() (which is now UNSAFE in React), the Reflux functionality in the component fails, and I get a console error:
In the screenshot, below the error, I printed this.componentWillMount from the component's render() method, attesting it comes from the Reflux.Component implementation.
In summary, due to implementing a now UNSAFE componentWillMount(), Reflux.Component cannot be used with the new static method getDerivedStateFromProps().