React-meteor-data and react 16.3

React is about to deprecate lifecycle methods like componentWillMount and componentWillUpdateand 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 ?

2 Likes

+1 to this.

My current solution is not to use React Strict Mode