Home / File/ useMemo-infer-scope-global.ts — react Source File

useMemo-infer-scope-global.ts — react Source File

Architecture documentation for useMemo-infer-scope-global.ts, a typescript file in the react codebase. 2 imports, 0 dependents.

File typescript TestingUtilities Fixtures 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  d8156b16_e10c_1407_c6b4_0ecd74c91946["useMemo-infer-scope-global.ts"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  d8156b16_e10c_1407_c6b4_0ecd74c91946 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  d8156b16_e10c_1407_c6b4_0ecd74c91946 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style d8156b16_e10c_1407_c6b4_0ecd74c91946 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @validatePreserveExistingMemoizationGuarantees @validateExhaustiveMemoizationDependencies:false

import {useMemo} from 'react';
import {CONST_STRING0} from 'shared-runtime';

// It's correct to infer a useMemo block has no reactive dependencies
function useFoo() {
  return useMemo(() => [CONST_STRING0], [CONST_STRING0]);
}

export const FIXTURE_ENTRYPOINT = {
  fn: useFoo,
  params: [],
};

Subdomains

Functions

Dependencies

  • react
  • shared-runtime

Frequently Asked Questions

What does useMemo-infer-scope-global.ts do?
useMemo-infer-scope-global.ts is a source file in the react codebase, written in typescript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in useMemo-infer-scope-global.ts?
useMemo-infer-scope-global.ts defines 1 function(s): useFoo.
What does useMemo-infer-scope-global.ts depend on?
useMemo-infer-scope-global.ts imports 2 module(s): react, shared-runtime.
Where is useMemo-infer-scope-global.ts in the architecture?
useMemo-infer-scope-global.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/preserve-memo-validation/useMemo-infer-scope-global.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/preserve-memo-validation).

Analyze Your Own Codebase

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

Try Supermodel Free