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

Function accumulateOrCreateContinuousQueuedReplayableEvent

docs/index.js:18227–18258  ·  view source on GitHub ↗
(
  existingQueuedEvent,
  blockedOn,
  domEventName,
  eventSystemFlags,
  targetContainer,
  nativeEvent
)

Source from the content-addressed store, hash-verified

18225 }
18226}
18227function accumulateOrCreateContinuousQueuedReplayableEvent(
18228 existingQueuedEvent,
18229 blockedOn,
18230 domEventName,
18231 eventSystemFlags,
18232 targetContainer,
18233 nativeEvent
18234) {
18235 if (
18236 null === existingQueuedEvent ||
18237 existingQueuedEvent.nativeEvent !== nativeEvent
18238 )
18239 return (
18240 (existingQueuedEvent = {
18241 blockedOn: blockedOn,
18242 domEventName: domEventName,
18243 eventSystemFlags: eventSystemFlags,
18244 nativeEvent: nativeEvent,
18245 targetContainers: [targetContainer]
18246 }),
18247 null !== blockedOn &&
18248 ((blockedOn = getInstanceFromNode(blockedOn)),
18249 null !== blockedOn && attemptContinuousHydration(blockedOn)),
18250 existingQueuedEvent
18251 );
18252 existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
18253 blockedOn = existingQueuedEvent.targetContainers;
18254 null !== targetContainer &&
18255 -1 === blockedOn.indexOf(targetContainer) &&
18256 blockedOn.push(targetContainer);
18257 return existingQueuedEvent;
18258}
18259function queueIfContinuousEvent(
18260 blockedOn,
18261 domEventName,

Callers 1

queueIfContinuousEventFunction · 0.85

Calls 2

getInstanceFromNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…