Home / Function/ createDispatchListener() — react Function Reference

createDispatchListener() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f83d0a32_5c24_8096_449b_8e278ad03f9d["createDispatchListener()"]
  816b54e5_c63c_f8b2_68e8_0c637e281f03["DOMPluginEventSystem.js"]
  f83d0a32_5c24_8096_449b_8e278ad03f9d -->|defined in| 816b54e5_c63c_f8b2_68e8_0c637e281f03
  ffe5dadd_1136_563b_f11c_19f1898c60be["accumulateSinglePhaseListeners()"]
  ffe5dadd_1136_563b_f11c_19f1898c60be -->|calls| f83d0a32_5c24_8096_449b_8e278ad03f9d
  dd9eb6ac_296c_ca63_51dd_da82f645aaaa["accumulateTwoPhaseListeners()"]
  dd9eb6ac_296c_ca63_51dd_da82f645aaaa -->|calls| f83d0a32_5c24_8096_449b_8e278ad03f9d
  style f83d0a32_5c24_8096_449b_8e278ad03f9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/events/DOMPluginEventSystem.js lines 700–710

function createDispatchListener(
  instance: null | Fiber,
  listener: Function,
  currentTarget: EventTarget,
): DispatchListener {
  return {
    instance,
    listener,
    currentTarget,
  };
}

Domain

Subdomains

Frequently Asked Questions

What does createDispatchListener() do?
createDispatchListener() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/DOMPluginEventSystem.js.
Where is createDispatchListener() defined?
createDispatchListener() is defined in packages/react-dom-bindings/src/events/DOMPluginEventSystem.js at line 700.
What calls createDispatchListener()?
createDispatchListener() is called by 2 function(s): accumulateSinglePhaseListeners, accumulateTwoPhaseListeners.

Analyze Your Own Codebase

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

Try Supermodel Free