Home / Function/ dispatchEventsForPlugins() — react Function Reference

dispatchEventsForPlugins() — react Function Reference

Architecture documentation for the dispatchEventsForPlugins() function in DOMPluginEventSystem.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  9a8085d6_7398_0661_fca1_1af88d83ebe8["dispatchEventsForPlugins()"]
  816b54e5_c63c_f8b2_68e8_0c637e281f03["DOMPluginEventSystem.js"]
  9a8085d6_7398_0661_fca1_1af88d83ebe8 -->|defined in| 816b54e5_c63c_f8b2_68e8_0c637e281f03
  1be3a0b7_80ec_6d97_2d85_4a67f64ff80b["dispatchEventForPluginEventSystem()"]
  1be3a0b7_80ec_6d97_2d85_4a67f64ff80b -->|calls| 9a8085d6_7398_0661_fca1_1af88d83ebe8
  09433e29_bd2e_6733_ed27_363b257bb8e0["getEventTarget()"]
  9a8085d6_7398_0661_fca1_1af88d83ebe8 -->|calls| 09433e29_bd2e_6733_ed27_363b257bb8e0
  e68ee20d_0906_0494_d1c4_4f9c91467ead["extractEvents()"]
  9a8085d6_7398_0661_fca1_1af88d83ebe8 -->|calls| e68ee20d_0906_0494_d1c4_4f9c91467ead
  002516b7_f4cf_8780_7915_6ea2f2f06333["processDispatchQueue()"]
  9a8085d6_7398_0661_fca1_1af88d83ebe8 -->|calls| 002516b7_f4cf_8780_7915_6ea2f2f06333
  style 9a8085d6_7398_0661_fca1_1af88d83ebe8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/events/DOMPluginEventSystem.js lines 325–344

function dispatchEventsForPlugins(
  domEventName: DOMEventName,
  eventSystemFlags: EventSystemFlags,
  nativeEvent: AnyNativeEvent,
  targetInst: null | Fiber,
  targetContainer: EventTarget,
): void {
  const nativeEventTarget = getEventTarget(nativeEvent);
  const dispatchQueue: DispatchQueue = [];
  extractEvents(
    dispatchQueue,
    domEventName,
    targetInst,
    nativeEvent,
    nativeEventTarget,
    eventSystemFlags,
    targetContainer,
  );
  processDispatchQueue(dispatchQueue, eventSystemFlags);
}

Domain

Subdomains

Frequently Asked Questions

What does dispatchEventsForPlugins() do?
dispatchEventsForPlugins() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/DOMPluginEventSystem.js.
Where is dispatchEventsForPlugins() defined?
dispatchEventsForPlugins() is defined in packages/react-dom-bindings/src/events/DOMPluginEventSystem.js at line 325.
What does dispatchEventsForPlugins() call?
dispatchEventsForPlugins() calls 3 function(s): extractEvents, getEventTarget, processDispatchQueue.
What calls dispatchEventsForPlugins()?
dispatchEventsForPlugins() is called by 1 function(s): dispatchEventForPluginEventSystem.

Analyze Your Own Codebase

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

Try Supermodel Free