Home / File/ error.hook-call-freezes-captured-memberexpr.jsx — react Source File

error.hook-call-freezes-captured-memberexpr.jsx — react Source File

Architecture documentation for error.hook-call-freezes-captured-memberexpr.jsx, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  a3f12c6c_2306_836b_c510_9f0ca85a3373["error.hook-call-freezes-captured-memberexpr.jsx"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  a3f12c6c_2306_836b_c510_9f0ca85a3373 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style a3f12c6c_2306_836b_c510_9f0ca85a3373 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @enableTransitivelyFreezeFunctionExpressions
import {mutate, Stringify, useIdentity} from 'shared-runtime';

function Foo({count}) {
  const x = {value: 0};
  /**
   * After this custom hook call, it's no longer valid to mutate x.
   */
  const cb = useIdentity(() => {
    x.value++;
  });

  x.value += count;
  return <Stringify x={x} cb={cb} />;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Foo,
  params: [{count: 1}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does error.hook-call-freezes-captured-memberexpr.jsx do?
error.hook-call-freezes-captured-memberexpr.jsx is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in error.hook-call-freezes-captured-memberexpr.jsx?
error.hook-call-freezes-captured-memberexpr.jsx defines 1 function(s): Foo.
What does error.hook-call-freezes-captured-memberexpr.jsx depend on?
error.hook-call-freezes-captured-memberexpr.jsx imports 1 module(s): shared-runtime.
Where is error.hook-call-freezes-captured-memberexpr.jsx in the architecture?
error.hook-call-freezes-captured-memberexpr.jsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.hook-call-freezes-captured-memberexpr.jsx (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