Switch componentWillMount / componentWillUnmount order

Summary:
This switches our React feature flag so that componentWillMount happens before
componentWillUnmount when a child switches. It used to be inconsistent and this
makes it consistent and inline with what React Fiber does.

Breaking change. May cause issues.

Reviewed By: spicyj, bvaughn

Differential Revision: D4626543

fbshipit-source-id: f7eaf1ebd479ca9fada012f903a2f972a7901b40
This commit is contained in:
Sebastian Markbage 2017-02-28 12:06:28 -08:00 committed by Facebook Github Bot
parent 31628f3aa4
commit 5eb3ab3522
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ var ReactFeatureFlags = {
// render (both initial renders and updates). Useful when looking at prod-mode
// timeline profiles in Chrome, for example.
logTopLevelRenders: false,
prepareNewChildrenBeforeUnmountInStack: false,
prepareNewChildrenBeforeUnmountInStack: true,
disableNewFiberFeatures: false,
};