Home / Function/ makeForInOfLeft() — react Function Reference

makeForInOfLeft() — react Function Reference

Architecture documentation for the makeForInOfLeft() function in code-path-state.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  115c11b6_b5e4_a723_8ebf_686a26a74ac8["makeForInOfLeft()"]
  d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"]
  115c11b6_b5e4_a723_8ebf_686a26a74ac8 -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c
  style 115c11b6_b5e4_a723_8ebf_686a26a74ac8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 1242–1251

  makeForInOfLeft() {
    const context = this.loopContext;
    const forkContext = this.forkContext;
    const leftSegments = forkContext.makeDisconnected(-1, -1);

    // Update state.
    context.prevSegments = forkContext.head;
    context.leftSegments = context.continueDestSegments = leftSegments;
    forkContext.replaceHead(leftSegments);
  }

Domain

Subdomains

Frequently Asked Questions

What does makeForInOfLeft() do?
makeForInOfLeft() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is makeForInOfLeft() defined?
makeForInOfLeft() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 1242.

Analyze Your Own Codebase

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

Try Supermodel Free