I am getting a warning with componentWillMount and componentWillReceiveProps.


This is part of the React 16.3.0 update. Those methods will be removed somewhere around React 17.0.0
But we have a replacement for those: static getDerivedStateFromProps(nextProps, prevState) and getSnapshotBeforeUpdate(prevProps, prevState)
Hopefully Appsync team will update to new lifecycle methods soon
React blogpost regarding this:
https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
Most helpful comment
This is part of the React 16.3.0 update. Those methods will be removed somewhere around React 17.0.0
But we have a replacement for those:
static getDerivedStateFromProps(nextProps, prevState)andgetSnapshotBeforeUpdate(prevProps, prevState)Hopefully Appsync team will update to new lifecycle methods soon
React blogpost regarding this:
https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html