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

Function deferHiddenOffscreenComponent

docs/index.js:9104–9125  ·  view source on GitHub ↗
(
  current,
  workInProgress,
  nextBaseLanes,
  renderLanes
)

Source from the content-addressed store, hash-verified

9102 return workInProgress.child;
9103}
9104function deferHiddenOffscreenComponent(
9105 current,
9106 workInProgress,
9107 nextBaseLanes,
9108 renderLanes
9109) {
9110 var JSCompiler_inline_result = peekCacheFromPool();
9111 JSCompiler_inline_result =
9112 null === JSCompiler_inline_result
9113 ? null
9114 : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result };
9115 workInProgress.memoizedState = {
9116 baseLanes: nextBaseLanes,
9117 cachePool: JSCompiler_inline_result
9118 };
9119 null !== current && pushTransition(workInProgress, null);
9120 reuseHiddenContextOnStack();
9121 pushOffscreenSuspenseHandler(workInProgress);
9122 null !== current &&
9123 propagateParentContextChanges(current, workInProgress, renderLanes, !0);
9124 return null;
9125}
9126function markRef(current, workInProgress) {
9127 var ref = workInProgress.ref;
9128 if (null === ref)

Callers 1

updateOffscreenComponentFunction · 0.85

Calls 5

peekCacheFromPoolFunction · 0.85
pushTransitionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…