MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / accumulateTwoPhaseDispatchesSingle

Function accumulateTwoPhaseDispatchesSingle

code/styling/public/app.js:2688–2692  ·  view source on GitHub ↗

* Collect dispatches (must be entirely collected before dispatching - see unit * tests). Lazily allocate the array to conserve memory. We must loop through * each event and perform the traversal for each one. We cannot perform a * single traversal for the entire collection of events because each

(event)

Source from the content-addressed store, hash-verified

2686 * have a different target.
2687 */
2688function accumulateTwoPhaseDispatchesSingle(event) {
2689 if (event && event.dispatchConfig.phasedRegistrationNames) {
2690 traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
2691 }
2692}
2693
2694/**
2695 * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID.

Callers

nothing calls this directly

Calls 1

traverseTwoPhaseFunction · 0.70

Tested by

no test coverage detected