dillon1000/react

Commit

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.
Browse files
Changed paths5 files
First-parent comparison
M scripts/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…