Using UNSAFE_componentWillReceiveProps in strict mode is not recommended
skswong8 opened this issue · comments
Sam Wong commented
Having updated to the latest release (1.2.4), I'm seeing this console warning when rendering the post select UI
Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
Please update the following components: r, t