Home / File/ error.hoist-optional-member-expression-with-conditional.js — react Source File

error.hoist-optional-member-expression-with-conditional.js — react Source File

Architecture documentation for error.hoist-optional-member-expression-with-conditional.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
  f7575c29_c37d_7c01_4797_8138c52ddd18["error.hoist-optional-member-expression-with-conditional.js"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  f7575c29_c37d_7c01_4797_8138c52ddd18 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style f7575c29_c37d_7c01_4797_8138c52ddd18 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @validatePreserveExistingMemoizationGuarantees @enableOptionalDependencies
import {ValidateMemoization} from 'shared-runtime';
function Component(props) {
  const data = useMemo(() => {
    const x = [];
    x.push(props?.items);
    if (props.cond) {
      x.push(props.items);
    }
    return x;
  }, [props?.items, props.cond]);
  return (
    <ValidateMemoization inputs={[props?.items, props.cond]} output={data} />
  );
}

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

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