Home / Function/ accumulateDirectionalDispatches() — react Function Reference

accumulateDirectionalDispatches() — react Function Reference

Architecture documentation for the accumulateDirectionalDispatches() function in ResponderEventPlugin.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  0104b22b_17a1_c4b6_e482_ee99863d04a6["accumulateDirectionalDispatches()"]
  674c6180_b91e_e17d_fb2d_40a6a3631bb3["ResponderEventPlugin.js"]
  0104b22b_17a1_c4b6_e482_ee99863d04a6 -->|defined in| 674c6180_b91e_e17d_fb2d_40a6a3631bb3
  ba1de287_c0e0_6530_3aa3_e5be803c2d6e["listenerAtPhase()"]
  0104b22b_17a1_c4b6_e482_ee99863d04a6 -->|calls| ba1de287_c0e0_6530_3aa3_e5be803c2d6e
  style 0104b22b_17a1_c4b6_e482_ee99863d04a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js lines 269–283

function accumulateDirectionalDispatches(inst, phase, event) {
  if (__DEV__) {
    if (!inst) {
      console.error('Dispatching inst must not be null');
    }
  }
  const listener = listenerAtPhase(inst, event, phase);
  if (listener) {
    event._dispatchListeners = accumulateInto(
      event._dispatchListeners,
      listener,
    );
    event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  }
}

Domain

Subdomains

Frequently Asked Questions

What does accumulateDirectionalDispatches() do?
accumulateDirectionalDispatches() is a function in the react codebase, defined in packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js.
Where is accumulateDirectionalDispatches() defined?
accumulateDirectionalDispatches() is defined in packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js at line 269.
What does accumulateDirectionalDispatches() call?
accumulateDirectionalDispatches() calls 1 function(s): listenerAtPhase.

Analyze Your Own Codebase

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

Try Supermodel Free