Home / File/ readonly-object-method-calls.js — react Source File

readonly-object-method-calls.js — react Source File

Architecture documentation for readonly-object-method-calls.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
  72148540_c775_d3f8_a8bc_392b157a388b["readonly-object-method-calls.js"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  72148540_c775_d3f8_a8bc_392b157a388b --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 72148540_c775_d3f8_a8bc_392b157a388b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {useFragment} from 'shared-runtime';

function Component(props) {
  const user = useFragment(
    graphql`
      fragment Component_user on User {
        name
      }
    `,
    props.user
  );
  const posts = user.timeline.posts.edges.nodes.map(node => (
    <Post post={node} />
  ));
  posts.push({});
  const count = posts.length;
  foo(count);
  return <>{posts}</>;
}

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does readonly-object-method-calls.js do?
readonly-object-method-calls.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 readonly-object-method-calls.js?
readonly-object-method-calls.js defines 1 function(s): Component.
What does readonly-object-method-calls.js depend on?
readonly-object-method-calls.js imports 1 module(s): shared-runtime.
Where is readonly-object-method-calls.js in the architecture?
readonly-object-method-calls.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/readonly-object-method-calls.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