Home / File/ effect-with-global-function-call-no-error.js — react Source File

effect-with-global-function-call-no-error.js — react Source File

Architecture documentation for effect-with-global-function-call-no-error.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  d3a1abf9_485f_cb7d_98ba_53620cffcf41["effect-with-global-function-call-no-error.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  d3a1abf9_485f_cb7d_98ba_53620cffcf41 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style d3a1abf9_485f_cb7d_98ba_53620cffcf41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @validateNoDerivedComputationsInEffects_exp @loggerTestOnly @outputMode:"lint"
import {useEffect, useState} from 'react';

function Component({propValue}) {
  const [value, setValue] = useState(null);
  useEffect(() => {
    setValue(propValue);
    globalCall();
  }, [propValue]);

  return <div>{value}</div>;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{propValue: 'test'}],
};

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does effect-with-global-function-call-no-error.js do?
effect-with-global-function-call-no-error.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in effect-with-global-function-call-no-error.js?
effect-with-global-function-call-no-error.js defines 1 function(s): Component.
What does effect-with-global-function-call-no-error.js depend on?
effect-with-global-function-call-no-error.js imports 1 module(s): react.
Where is effect-with-global-function-call-no-error.js in the architecture?
effect-with-global-function-call-no-error.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/effect-derived-computations/effect-with-global-function-call-no-error.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/effect-derived-computations).

Analyze Your Own Codebase

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

Try Supermodel Free