dillon1000/react

Commit

Sort batched updates by owner depth

If we reconcile components higher in the hierarchy they will likely reconcile components lower in the
hierarchy. If we sort by depth then when we reach those components there will be no more pending state or
props and it will no op.
Browse files
Changed paths11 files
First-parent comparison
M src/core/ReactComponent.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/core/ReactMultiChild.js ModifiedM src/core/ReactNativeComponent.js ModifiedM src/core/ReactTextComponent.js ModifiedM src/core/ReactUpdates.js ModifiedM src/core/__tests__/ReactComponent-test.js ModifiedM src/core/__tests__/ReactNativeComponent-test.js ModifiedM src/core/__tests__/ReactUpdates-test.js ModifiedM src/dom/__tests__/Danger-test.js ModifiedM src/environment/ReactServerRendering.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…