Home / File/ repro-array-map-known-mutate-shape.tsx — react Source File

repro-array-map-known-mutate-shape.tsx — react Source File

Architecture documentation for repro-array-map-known-mutate-shape.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
  47fc4d79_6172_efa5_50f5_718b7b56c9d2["repro-array-map-known-mutate-shape.tsx"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  47fc4d79_6172_efa5_50f5_718b7b56c9d2 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 47fc4d79_6172_efa5_50f5_718b7b56c9d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {Stringify, useIdentity} from 'shared-runtime';

/**
 * Also see repro-array-map-known-nonmutate-Boolean, which calls a global
 * function that does *not* mutate its operands.
 */
function Component({value}) {
  const arr = [
    new Set([['foo', 2]]).values(),
    new Set([['bar', 4]]).values(),
    [['baz', value]],
  ];
  useIdentity(null);
  const derived = arr.map(Object.fromEntries);
  return (
    <Stringify>
      {derived.at(0)}
      {derived.at(-1)}
    </Stringify>
  );
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{value: 5}],
  sequentialRenders: [{value: 5}, {value: 6}, {value: 6}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does repro-array-map-known-mutate-shape.tsx do?
repro-array-map-known-mutate-shape.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 repro-array-map-known-mutate-shape.tsx?
repro-array-map-known-mutate-shape.tsx defines 1 function(s): Component.
What does repro-array-map-known-mutate-shape.tsx depend on?
repro-array-map-known-mutate-shape.tsx imports 1 module(s): shared-runtime.
Where is repro-array-map-known-mutate-shape.tsx in the architecture?
repro-array-map-known-mutate-shape.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/global-types/repro-array-map-known-mutate-shape.tsx (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