Home / Function/ appendToEventPath() — react Function Reference

appendToEventPath() — react Function Reference

Architecture documentation for the appendToEventPath() function in simulateBrowserEventDispatch.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  de298265_d49d_6090_524a_116b80fe9878["appendToEventPath()"]
  25f70bd8_f112_d04a_4a3f_6a33aba6b460["simulateBrowserEventDispatch.js"]
  de298265_d49d_6090_524a_116b80fe9878 -->|defined in| 25f70bd8_f112_d04a_4a3f_6a33aba6b460
  c57044b1_8e5d_8b41_e59b_a52a4de1a86f["_dispatch()"]
  c57044b1_8e5d_8b41_e59b_a52a4de1a86f -->|calls| de298265_d49d_6090_524a_116b80fe9878
  style de298265_d49d_6090_524a_116b80fe9878 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/internal-test-utils/simulateBrowserEventDispatch.js lines 369–389

function appendToEventPath(
  eventImpl,
  target,
  targetOverride,
  relatedTarget,
  touchTargets,
  slotInClosedTree,
) {
  const itemInShadowTree = isNode(target) && isShadowRoot(nodeRoot(target));
  const rootOfClosedTree = isShadowRoot(target) && target.mode === 'closed';

  eventImpl._path.push({
    item: target,
    itemInShadowTree,
    target: targetOverride,
    relatedTarget,
    touchTargets,
    rootOfClosedTree,
    slotInClosedTree,
  });
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does appendToEventPath() do?
appendToEventPath() is a function in the react codebase, defined in packages/internal-test-utils/simulateBrowserEventDispatch.js.
Where is appendToEventPath() defined?
appendToEventPath() is defined in packages/internal-test-utils/simulateBrowserEventDispatch.js at line 369.
What calls appendToEventPath()?
appendToEventPath() is called by 1 function(s): _dispatch.

Analyze Your Own Codebase

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

Try Supermodel Free