Home / Function/ executeDirectDispatch() — react Function Reference

executeDirectDispatch() — react Function Reference

Architecture documentation for the executeDirectDispatch() function in EventPluginUtils.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  87ca11ba_f1b0_34e6_deb2_620dc868ac55["executeDirectDispatch()"]
  c47175ea_4123_c4e5_c30d_de7506f00f3a["EventPluginUtils.js"]
  87ca11ba_f1b0_34e6_deb2_620dc868ac55 -->|defined in| c47175ea_4123_c4e5_c30d_de7506f00f3a
  732fb477_d858_94a9_efff_34067b22778c["setResponderAndExtractTransfer()"]
  732fb477_d858_94a9_efff_34067b22778c -->|calls| 87ca11ba_f1b0_34e6_deb2_620dc868ac55
  92e5bd6b_559e_70c8_cde0_8c69f4e5a6ec["validateEventDispatches()"]
  87ca11ba_f1b0_34e6_deb2_620dc868ac55 -->|calls| 92e5bd6b_559e_70c8_cde0_8c69f4e5a6ec
  style 87ca11ba_f1b0_34e6_deb2_620dc868ac55 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-native-renderer/src/legacy-events/EventPluginUtils.js lines 169–188

export function executeDirectDispatch(event) {
  if (__DEV__) {
    validateEventDispatches(event);
  }
  const dispatchListener = event._dispatchListeners;
  const dispatchInstance = event._dispatchInstances;

  if (isArray(dispatchListener)) {
    throw new Error('Invalid `event`.');
  }

  event.currentTarget = dispatchListener
    ? getNodeFromInstance(dispatchInstance)
    : null;
  const res = dispatchListener ? dispatchListener(event) : null;
  event.currentTarget = null;
  event._dispatchListeners = null;
  event._dispatchInstances = null;
  return res;
}

Domain

Subdomains

Frequently Asked Questions

What does executeDirectDispatch() do?
executeDirectDispatch() is a function in the react codebase, defined in packages/react-native-renderer/src/legacy-events/EventPluginUtils.js.
Where is executeDirectDispatch() defined?
executeDirectDispatch() is defined in packages/react-native-renderer/src/legacy-events/EventPluginUtils.js at line 169.
What does executeDirectDispatch() call?
executeDirectDispatch() calls 1 function(s): validateEventDispatches.
What calls executeDirectDispatch()?
executeDirectDispatch() is called by 1 function(s): setResponderAndExtractTransfer.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free