dillon1000/react
Commit
Browse files Don't stop context traversal at matching consumers (#13391)
* Don't stop context traversal at matching consumers Originally, the idea was to time slice the traversal. This worked when there was only a single context type per consumer. Now that each fiber may have a list of context dependencies, including duplicate entries, that optimization no longer makes sense – we could end up scanning the same subtree multiple times. * Remove changedBits from context object and stack Don't need it anymore, yay
Changed paths5 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberBeginWork.js ModifiedM packages/react-reconciler/src/ReactFiberClassComponent.js ModifiedM packages/react-reconciler/src/ReactFiberNewContext.js ModifiedM packages/react/src/ReactContext.js ModifiedM packages/shared/ReactTypes.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…