dillon1000/react
Commit
Browse files Memoize merged child context when possible
We can avoid recreating the merged context object if the context provider work was reused. This is essential to avoid allocations for deep setState() calls.
Changed paths2 files
First-parent comparisonsrc/renderers/shared/fiber/ReactFiberContext.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncremental-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…