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

Function executeDispatch

code/redux/public/app.js:2381–2386  ·  view source on GitHub ↗

* Dispatch the event to the listener. * @param {SyntheticEvent} event SyntheticEvent to handle * @param {boolean} simulated If the event is simulated (changes exn behavior) * @param {function} listener Application-level callback * @param {*} inst Internal component instance

(event, simulated, listener, inst)

Source from the content-addressed store, hash-verified

2379 * @param {*} inst Internal component instance
2380 */
2381function executeDispatch(event, simulated, listener, inst) {
2382 var type = event.type || 'unknown-event';
2383 event.currentTarget = getNodeFromInstance(inst);
2384 ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
2385 event.currentTarget = null;
2386}
2387
2388/**
2389 * Standard/simple iteration through an event's collected dispatches.

Callers 1

executeDispatchesInOrderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected