Closed
Description
Follow up item for PR #12028
Within the context of an async tree, we should double-invoke the following methods:
constructor
render
static getDerivedStateFromProps
setState
updater functions
The current implementation of debugRenderPhaseSideEffects
is to also double-invoke several additional methods (eg will-mount, will-update, sCU, etc). This behavior should be removed.
We should also add a dev-warning if we detect any components within an async tree that contain the following methods:
componentWillMount
(orUNSAFE_componentWillMount
)componentWillReceiveProps
(orUNSAFE_componentWillReceiveProps
)componentWillUpdate
(orUNSAFE_componentWillUpdate
)
Metadata
Metadata
Assignees
Labels
No labels