MCPcopy Index your code
hub / github.com/react/react / releaseRootPooledCache

Function releaseRootPooledCache

packages/react-reconciler/src/ReactFiberWorkLoop.js:4401–4412  ·  view source on GitHub ↗
(root: FiberRoot, remainingLanes: Lanes)

Source from the content-addressed store, hash-verified

4399}
4400
4401function releaseRootPooledCache(root: FiberRoot, remainingLanes: Lanes) {
4402 const pooledCacheLanes = (root.pooledCacheLanes &= remainingLanes);
4403 if (pooledCacheLanes === NoLanes) {
4404 // None of the remaining work relies on the cache pool. Clear it so
4405 // subsequent requests get a new cache
4406 const pooledCache = root.pooledCache;
4407 if (pooledCache != null) {
4408 root.pooledCache = null;
4409 releaseCache(pooledCache);
4410 }
4411 }
4412}
4413
4414let didWarnAboutInterruptedViewTransitions = false;
4415

Callers 2

flushSpawnedWorkFunction · 0.85
flushPassiveEffectsFunction · 0.85

Calls 1

releaseCacheFunction · 0.90

Tested by

no test coverage detected