dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberCacheComponent.new.js ModifiedM packages/react-reconciler/src/ReactFiberCacheComponent.old.js ModifiedM packages/react-reconciler/src/__tests__/ReactCache-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…