Closed fcpineiro closed 1 year ago
Due to the new React versions tagging this method as UNSAFE, code will simply not work due to unhandled component exceptions.
This PR solves this by splitting the old componentWillReceiveProps between getDerivedStateFromProps & componentWillUpdate lifecycle hooks.
Feel free to comment or add any other change that would be worth it regarding version upgrade.
Due to the new React versions tagging this method as UNSAFE, code will simply not work due to unhandled component exceptions.
This PR solves this by splitting the old componentWillReceiveProps between getDerivedStateFromProps & componentWillUpdate lifecycle hooks.
Feel free to comment or add any other change that would be worth it regarding version upgrade.