MCPcopy Create free account
hub / github.com/BetaSu/big-react / triggerEventFlow

Function triggerEventFlow

packages/react-dom/src/SyntheticEvent.ts:86–97  ·  view source on GitHub ↗
(paths: EventCallback[], se: SyntheticEvent)

Source from the content-addressed store, hash-verified

84}
85
86function triggerEventFlow(paths: EventCallback[], se: SyntheticEvent) {
87 for (let i = 0; i < paths.length; i++) {
88 const callback = paths[i];
89 unstable_runWithPriority(eventTypeToSchdulerPriority(se.type), () => {
90 callback.call(null, se);
91 });
92
93 if (se.__stopPropagation) {
94 break;
95 }
96 }
97}
98
99function getEventCallbackNameFromEventType(
100 eventType: string

Callers 1

dispatchEventFunction · 0.85

Calls 1

Tested by

no test coverage detected