Home / File/ align-scopes-reactive-scope-overlaps-try.ts — react Source File

align-scopes-reactive-scope-overlaps-try.ts — react Source File

Architecture documentation for align-scopes-reactive-scope-overlaps-try.ts, a typescript file in the react codebase. 1 imports, 0 dependents.

File typescript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  b8c5697c_1ceb_cbbd_be34_b92575855e09["align-scopes-reactive-scope-overlaps-try.ts"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  b8c5697c_1ceb_cbbd_be34_b92575855e09 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style b8c5697c_1ceb_cbbd_be34_b92575855e09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {arrayPush, mutate} from 'shared-runtime';

function useFoo({value}) {
  let items = null;
  try {
    // Mutable range of `items` begins here, but its reactive scope block
    // should be aligned to above the try-block
    items = [];
    arrayPush(items, value);
  } catch {
    // ignore
  }
  mutate(items);
  return items;
}

export const FIXTURE_ENTRYPOINT = {
  fn: useFoo,
  params: [{value: 2}],
  sequentialRenders: [{value: 2}, {value: 2}, {value: 3}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does align-scopes-reactive-scope-overlaps-try.ts do?
align-scopes-reactive-scope-overlaps-try.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 align-scopes-reactive-scope-overlaps-try.ts?
align-scopes-reactive-scope-overlaps-try.ts defines 1 function(s): useFoo.
What does align-scopes-reactive-scope-overlaps-try.ts depend on?
align-scopes-reactive-scope-overlaps-try.ts imports 1 module(s): shared-runtime.
Where is align-scopes-reactive-scope-overlaps-try.ts in the architecture?
align-scopes-reactive-scope-overlaps-try.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/align-scopes-reactive-scope-overlaps-try.ts (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