dillon1000/react

Commit

Simplify cache pool contexts (#23280)

The `pooledCache` variable always points to either `root.pooledCache`
or the stack cursor that is used to track caches that were resumed from
a previous render. We can get rid of it by reading from those instead.
This simplifies the code a lot and is harder to mess up, I think.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberCacheComponent.new.js ModifiedM packages/react-reconciler/src/ReactFiberCacheComponent.old.js ModifiedM packages/react-reconciler/src/__tests__/ReactCache-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…