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

Function attemptExplicitHydrationTarget

docs/index.js:18336–18370  ·  view source on GitHub ↗
(queuedTarget)

Source from the content-addressed store, hash-verified

18334 return !1;
18335}
18336function attemptExplicitHydrationTarget(queuedTarget) {
18337 var targetInst = getClosestInstanceFromNode(queuedTarget.target);
18338 if (null !== targetInst) {
18339 var nearestMounted = getNearestMountedFiber(targetInst);
18340 if (null !== nearestMounted)
18341 if (((targetInst = nearestMounted.tag), 13 === targetInst)) {
18342 if (
18343 ((targetInst = getSuspenseInstanceFromFiber(nearestMounted)),
18344 null !== targetInst)
18345 ) {
18346 queuedTarget.blockedOn = targetInst;
18347 runWithPriority(queuedTarget.priority, function () {
18348 if (13 === nearestMounted.tag) {
18349 var lane = requestUpdateLane(),
18350 root = enqueueConcurrentRenderForLane(nearestMounted, lane);
18351 null !== root &&
18352 scheduleUpdateOnFiber(root, nearestMounted, lane);
18353 markRetryLaneIfNotHydrated(nearestMounted, lane);
18354 }
18355 });
18356 return;
18357 }
18358 } else if (
18359 3 === targetInst &&
18360 nearestMounted.stateNode.current.memoizedState.isDehydrated
18361 ) {
18362 queuedTarget.blockedOn =
18363 3 === nearestMounted.tag
18364 ? nearestMounted.stateNode.containerInfo
18365 : null;
18366 return;
18367 }
18368 }
18369 queuedTarget.blockedOn = null;
18370}
18371function attemptReplayContinuousQueuedEvent(queuedEvent) {
18372 if (null !== queuedEvent.blockedOn) return !1;
18373 for (

Callers 2

retryIfBlockedOnFunction · 0.85
index.jsFile · 0.85

Calls 8

getNearestMountedFiberFunction · 0.85
runWithPriorityFunction · 0.85
requestUpdateLaneFunction · 0.85
scheduleUpdateOnFiberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…