dillon1000/react
Commit
Browse files Give setState callbacks componentWillUpdate semantics
This matches the behavior in Fiber. Normally we would change Fiber to match Stack to minimize breaking changes for the initial release. However, in this case it would require too large a compromise to change Fiber to act like Stack.
Changed paths5 files
First-parent comparisonscripts/fiber/tests-failing.txt ModifiedM scripts/fiber/tests-passing.txt ModifiedM src/renderers/shared/shared/__tests__/ReactCompositeComponentNestedState-test.js ModifiedM src/renderers/shared/stack/reconciler/ReactCompositeComponent.js ModifiedM src/renderers/shared/stack/reconciler/ReactUpdates.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…