Home / File/ unmemoized-nonreactive-dependency-is-pruned-as-dependency.js — react Source File

unmemoized-nonreactive-dependency-is-pruned-as-dependency.js — react Source File

Architecture documentation for unmemoized-nonreactive-dependency-is-pruned-as-dependency.js, 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
  e2aadaf6_156e_9100_4da6_98ffa458c88a["unmemoized-nonreactive-dependency-is-pruned-as-dependency.js"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  e2aadaf6_156e_9100_4da6_98ffa458c88a --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style e2aadaf6_156e_9100_4da6_98ffa458c88a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

function Component(props) {
  // Here `x` cannot be memoized bc its mutable range spans a hook call:
  const x = [];
  useNoAlias();
  mutate(x);

  // However, `x` is non-reactive. It cannot semantically change, so we
  // exclude it as a dependency of the JSX element:
  return <div>{x}</div>;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{value: 42}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does unmemoized-nonreactive-dependency-is-pruned-as-dependency.js do?
unmemoized-nonreactive-dependency-is-pruned-as-dependency.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in unmemoized-nonreactive-dependency-is-pruned-as-dependency.js?
unmemoized-nonreactive-dependency-is-pruned-as-dependency.js defines 1 function(s): Component.
What does unmemoized-nonreactive-dependency-is-pruned-as-dependency.js depend on?
unmemoized-nonreactive-dependency-is-pruned-as-dependency.js imports 1 module(s): shared-runtime.
Where is unmemoized-nonreactive-dependency-is-pruned-as-dependency.js in the architecture?
unmemoized-nonreactive-dependency-is-pruned-as-dependency.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/unmemoized-nonreactive-dependency-is-pruned-as-dependency.js (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