Home / Function/ accumulateDispatches() — react Function Reference

accumulateDispatches() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  97f5656c_520d_50b3_5276_8eb1fbeec849["accumulateDispatches()"]
  674c6180_b91e_e17d_fb2d_40a6a3631bb3["ResponderEventPlugin.js"]
  97f5656c_520d_50b3_5276_8eb1fbeec849 -->|defined in| 674c6180_b91e_e17d_fb2d_40a6a3631bb3
  80388921_12d9_c09a_ffe5_64fad1bfe266["accumulateDirectDispatchesSingle()"]
  80388921_12d9_c09a_ffe5_64fad1bfe266 -->|calls| 97f5656c_520d_50b3_5276_8eb1fbeec849
  e4b18fec_4ec4_b0ea_759a_daf5b09e987b["getListener()"]
  97f5656c_520d_50b3_5276_8eb1fbeec849 -->|calls| e4b18fec_4ec4_b0ea_759a_daf5b09e987b
  style 97f5656c_520d_50b3_5276_8eb1fbeec849 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js lines 290–306

function accumulateDispatches(
  inst: Object,
  ignoredDirection: ?boolean,
  event: Object,
): void {
  if (inst && event && event.dispatchConfig.registrationName) {
    const registrationName = event.dispatchConfig.registrationName;
    const listener = getListener(inst, registrationName);
    if (listener) {
      event._dispatchListeners = accumulateInto(
        event._dispatchListeners,
        listener,
      );
      event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
    }
  }
}

Domain

Subdomains

Frequently Asked Questions

What does accumulateDispatches() do?
accumulateDispatches() is a function in the react codebase, defined in packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js.
Where is accumulateDispatches() defined?
accumulateDispatches() is defined in packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js at line 290.
What does accumulateDispatches() call?
accumulateDispatches() calls 1 function(s): getListener.
What calls accumulateDispatches()?
accumulateDispatches() is called by 1 function(s): accumulateDirectDispatchesSingle.

Analyze Your Own Codebase

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

Try Supermodel Free