Home / Function/ executeDispatchesInOrderStopAtTrueImpl() — react Function Reference

executeDispatchesInOrderStopAtTrueImpl() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2d95f6f2_0848_5f11_99ba_1c6e181a70c9["executeDispatchesInOrderStopAtTrueImpl()"]
  c47175ea_4123_c4e5_c30d_de7506f00f3a["EventPluginUtils.js"]
  2d95f6f2_0848_5f11_99ba_1c6e181a70c9 -->|defined in| c47175ea_4123_c4e5_c30d_de7506f00f3a
  5c1bdf7c_1cc3_dfb2_4d64_5824b3570c9e["executeDispatchesInOrderStopAtTrue()"]
  5c1bdf7c_1cc3_dfb2_4d64_5824b3570c9e -->|calls| 2d95f6f2_0848_5f11_99ba_1c6e181a70c9
  92e5bd6b_559e_70c8_cde0_8c69f4e5a6ec["validateEventDispatches()"]
  2d95f6f2_0848_5f11_99ba_1c6e181a70c9 -->|calls| 92e5bd6b_559e_70c8_cde0_8c69f4e5a6ec
  style 2d95f6f2_0848_5f11_99ba_1c6e181a70c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-native-renderer/src/legacy-events/EventPluginUtils.js lines 126–148

function executeDispatchesInOrderStopAtTrueImpl(event) {
  const dispatchListeners = event._dispatchListeners;
  const dispatchInstances = event._dispatchInstances;
  if (__DEV__) {
    validateEventDispatches(event);
  }
  if (isArray(dispatchListeners)) {
    for (let i = 0; i < dispatchListeners.length; i++) {
      if (event.isPropagationStopped()) {
        break;
      }
      // Listeners and Instances are two parallel arrays that are always in sync.
      if (dispatchListeners[i](event, dispatchInstances[i])) {
        return dispatchInstances[i];
      }
    }
  } else if (dispatchListeners) {
    if (dispatchListeners(event, dispatchInstances)) {
      return dispatchInstances;
    }
  }
  return null;
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free