Home / Function/ AbortControllerLocal() — react Function Reference

AbortControllerLocal() — react Function Reference

Architecture documentation for the AbortControllerLocal() function in ReactFiberCacheComponent.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  2fd88b7a_70dc_2083_d6ce_2895ceddae95["AbortControllerLocal()"]
  8d310484_4245_75c0_c183_7a31fce6815e["ReactFiberCacheComponent.js"]
  2fd88b7a_70dc_2083_d6ce_2895ceddae95 -->|defined in| 8d310484_4245_75c0_c183_7a31fce6815e
  b07cb646_f005_c6a9_24f4_aefa058750b5["createCache()"]
  b07cb646_f005_c6a9_24f4_aefa058750b5 -->|calls| 2fd88b7a_70dc_2083_d6ce_2895ceddae95
  style 2fd88b7a_70dc_2083_d6ce_2895ceddae95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberCacheComponent.js lines 25–38

      function AbortControllerShim() {
        const listeners = [];
        const signal = (this.signal = {
          aborted: false as boolean,
          addEventListener: (type, listener) => {
            listeners.push(listener);
          },
        });

        this.abort = () => {
          signal.aborted = true;
          listeners.forEach(listener => listener());
        };
      };

Domain

Subdomains

Called By

Frequently Asked Questions

What does AbortControllerLocal() do?
AbortControllerLocal() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberCacheComponent.js.
Where is AbortControllerLocal() defined?
AbortControllerLocal() is defined in packages/react-reconciler/src/ReactFiberCacheComponent.js at line 25.
What calls AbortControllerLocal()?
AbortControllerLocal() is called by 1 function(s): createCache.

Analyze Your Own Codebase

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

Try Supermodel Free