MCPcopy Create free account
hub / github.com/caseywebdev/react-list / attemptReplayContinuousQueuedEvent

Function attemptReplayContinuousQueuedEvent

docs/index.js:18371–18399  ·  view source on GitHub ↗
(queuedEvent)

Source from the content-addressed store, hash-verified

18369 queuedTarget.blockedOn = null;
18370}
18371function attemptReplayContinuousQueuedEvent(queuedEvent) {
18372 if (null !== queuedEvent.blockedOn) return !1;
18373 for (
18374 var targetContainers = queuedEvent.targetContainers;
18375 0 < targetContainers.length;
18376
18377 ) {
18378 var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent);
18379 if (null === nextBlockedOn) {
18380 nextBlockedOn = queuedEvent.nativeEvent;
18381 var nativeEventClone = new nextBlockedOn.constructor(
18382 nextBlockedOn.type,
18383 nextBlockedOn
18384 );
18385 currentReplayingEvent = nativeEventClone;
18386 nextBlockedOn.target.dispatchEvent(nativeEventClone);
18387 currentReplayingEvent = null;
18388 } else
18389 return (
18390 (targetContainers = getInstanceFromNode(nextBlockedOn)),
18391 null !== targetContainers &&
18392 attemptContinuousHydration(targetContainers),
18393 (queuedEvent.blockedOn = nextBlockedOn),
18394 !1
18395 );
18396 targetContainers.shift();
18397 }
18398 return !0;
18399}
18400function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
18401 attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key);
18402}

Callers 2

replayUnblockedEventsFunction · 0.85

Calls 3

getInstanceFromNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…