MCPcopy Index your code
hub / github.com/caseywebdev/react-list / commitOffscreenPassiveMountEffects

Function commitOffscreenPassiveMountEffects

docs/index.js:12395–12408  ·  view source on GitHub ↗
(current, finishedWork)

Source from the content-addressed store, hash-verified

12393 }
12394}
12395function commitOffscreenPassiveMountEffects(current, finishedWork) {
12396 var previousCache = null;
12397 null !== current &&
12398 null !== current.memoizedState &&
12399 null !== current.memoizedState.cachePool &&
12400 (previousCache = current.memoizedState.cachePool.pool);
12401 current = null;
12402 null !== finishedWork.memoizedState &&
12403 null !== finishedWork.memoizedState.cachePool &&
12404 (current = finishedWork.memoizedState.cachePool.pool);
12405 current !== previousCache &&
12406 (null != current && current.refCount++,
12407 null != previousCache && releaseCache(previousCache));
12408}
12409function commitCachePassiveMountEffect(current, finishedWork) {
12410 current = null;
12411 null !== finishedWork.alternate &&

Calls 2

releaseCacheFunction · 0.85
retainCacheFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…