You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @christopher-johnson, yes it should be quite easy to transition over, although the frequency of calls for componentDidUpdate will be higher, as this is also called when state updates. The other option is getDerivedStateFromProps, which would require more of a refactor.
according to the latest React docs here: https://reactjs.org/docs/react-component.html,
componentWillReceiveProps
should be avoided and will be renamed in v.17.It is used frequently in core, and AFAICT could be easily be replaced with
componentDidUpdate
The text was updated successfully, but these errors were encountered: