Home / File/ error.maybe-mutable-ref-not-preserved.ts — react Source File

error.maybe-mutable-ref-not-preserved.ts — react Source File

Architecture documentation for error.maybe-mutable-ref-not-preserved.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
  8485095d_ec23_32e0_258d_349ea92ad428["error.maybe-mutable-ref-not-preserved.ts"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  8485095d_ec23_32e0_258d_349ea92ad428 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  8485095d_ec23_32e0_258d_349ea92ad428 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 8485095d_ec23_32e0_258d_349ea92ad428 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @validatePreserveExistingMemoizationGuarantees:true

import {useRef, useMemo} from 'react';
import {makeArray} from 'shared-runtime';

function useFoo() {
  const r = useRef();
  return useMemo(() => makeArray(r), []);
}

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

Subdomains

Functions

Dependencies

  • react
  • shared-runtime

Frequently Asked Questions

What does error.maybe-mutable-ref-not-preserved.ts do?
error.maybe-mutable-ref-not-preserved.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 error.maybe-mutable-ref-not-preserved.ts?
error.maybe-mutable-ref-not-preserved.ts defines 1 function(s): useFoo.
What does error.maybe-mutable-ref-not-preserved.ts depend on?
error.maybe-mutable-ref-not-preserved.ts imports 2 module(s): react, shared-runtime.
Where is error.maybe-mutable-ref-not-preserved.ts in the architecture?
error.maybe-mutable-ref-not-preserved.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/preserve-memo-validation/error.maybe-mutable-ref-not-preserved.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