React is about to deprecate lifecycle methods like componentWillMount
and componentWillUpdate
and introduced getDerivedStateFromProps
as a replacement in version 16.3.
react-meteor-data still uses those methods and we have that warning:
Warning: Unsafe lifecycle
componentWillMount: Please update the following components to use componentDidMount instead: ReactMeteorDataComponent
componentWillUpdate: Please update the following components to use componentDidUpdate instead: ReactMeteorDataComponent
The current version supports react 15.x. And introducing the use of getDerivedStateFromProps
would be a breaking change.
Is there a viable strategy to make it pre and post 16.3 compatible ?