Home / File/ todo-global-load-cached.tsx — react Source File

todo-global-load-cached.tsx — react Source File

Architecture documentation for todo-global-load-cached.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.

File tsx TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  39790860_d657_8dd6_ade4_fbe75d0dd93e["todo-global-load-cached.tsx"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  39790860_d657_8dd6_ade4_fbe75d0dd93e --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 39790860_d657_8dd6_ade4_fbe75d0dd93e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {Stringify} from 'shared-runtime';
import {makeArray} from 'shared-runtime';

/**
 * Here, we don't need to memoize Stringify as it is a read off of a global.
 * TODO: in PropagateScopeDeps (hir), we should produce a sidemap of global rvals
 * and avoid adding them to `temporariesUsedOutsideDefiningScope`.
 */
function Component({num}: {num: number}) {
  const arr = makeArray(num);
  return <Stringify value={arr.push(num)}></Stringify>;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{num: 2}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does todo-global-load-cached.tsx do?
todo-global-load-cached.tsx is a source file in the react codebase, written in tsx. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in todo-global-load-cached.tsx?
todo-global-load-cached.tsx defines 1 function(s): Component.
What does todo-global-load-cached.tsx depend on?
todo-global-load-cached.tsx imports 1 module(s): shared-runtime.
Where is todo-global-load-cached.tsx in the architecture?
todo-global-load-cached.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/todo-global-load-cached.tsx (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).

Analyze Your Own Codebase

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

Try Supermodel Free