Home / File/ set-copy-constructor-mutate.ts — react Source File

set-copy-constructor-mutate.ts — react Source File

Architecture documentation for set-copy-constructor-mutate.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
  a31f33c3_ef13_60b4_4116_616c367cd70f["set-copy-constructor-mutate.ts"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  a31f33c3_ef13_60b4_4116_616c367cd70f --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style a31f33c3_ef13_60b4_4116_616c367cd70f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

function useFoo({propArr}: {propArr: Array<number>}) {
  const s1 = new Set<number | Array<number>>([1, 2, 3]);
  s1.add(makeArray(propArr[0]));

  const s2 = new Set(s1);
  // this may also may mutate s1
  mutate(s2);

  return [s1, s2];
}

export const FIXTURE_ENTRYPOINT = {
  fn: useFoo,
  params: [{propArr: [7, 8, 9]}],
  sequentialRenders: [
    {propArr: [7, 8, 9]},
    {propArr: [7, 8, 9]},
    {propArr: [7, 8, 10]},
  ],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does set-copy-constructor-mutate.ts do?
set-copy-constructor-mutate.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 set-copy-constructor-mutate.ts?
set-copy-constructor-mutate.ts defines 1 function(s): useFoo.
What does set-copy-constructor-mutate.ts depend on?
set-copy-constructor-mutate.ts imports 1 module(s): shared-runtime.
Where is set-copy-constructor-mutate.ts in the architecture?
set-copy-constructor-mutate.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/global-types/set-copy-constructor-mutate.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/global-types).

Analyze Your Own Codebase

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

Try Supermodel Free