Home / Function/ accumulateDispatches() — react Function Reference

accumulateDispatches() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6121a217_2e4b_768e_aac8_fc53edf5823b["accumulateDispatches()"]
  577670f6_1f7f_5e0d_b9b6_894b69a76a73["ReactNativeBridgeEventPlugin.js"]
  6121a217_2e4b_768e_aac8_fc53edf5823b -->|defined in| 577670f6_1f7f_5e0d_b9b6_894b69a76a73
  c38ab8cf_416a_9d6e_0987_0f084c473c73["accumulateDirectDispatchesSingle()"]
  c38ab8cf_416a_9d6e_0987_0f084c473c73 -->|calls| 6121a217_2e4b_768e_aac8_fc53edf5823b
  2d91c4ed_9a58_6013_5118_49d8f98f9453["getListener()"]
  6121a217_2e4b_768e_aac8_fc53edf5823b -->|calls| 2d91c4ed_9a58_6013_5118_49d8f98f9453
  style 6121a217_2e4b_768e_aac8_fc53edf5823b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-native-renderer/src/ReactNativeBridgeEventPlugin.js lines 133–149

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/ReactNativeBridgeEventPlugin.js.
Where is accumulateDispatches() defined?
accumulateDispatches() is defined in packages/react-native-renderer/src/ReactNativeBridgeEventPlugin.js at line 133.
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