After running the codemod, willUpdate(stateChanges, propChanges) converted to UNSAFE_componentWillUpdate(stateChanges, propChanges). From the React docs it looks like propChanges should be the first argument to this method, followed by stateChanges, so it would be expected to look like UNSAFE_componentWillUpdate(propChanges, stateChanges).
After running the codemod,
willUpdate(stateChanges, propChanges)
converted toUNSAFE_componentWillUpdate(stateChanges, propChanges)
. From the React docs it looks likepropChanges
should be the first argument to this method, followed bystateChanges
, so it would be expected to look likeUNSAFE_componentWillUpdate(propChanges, stateChanges)
.