dillon1000/react

Commit

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.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/shared/fiber/ReactFiberContext.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncremental-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…