Home / File/ error.todo-dynamic-gating.js — react Source File

error.todo-dynamic-gating.js — react Source File

Architecture documentation for error.todo-dynamic-gating.js, a javascript file in the react codebase. 2 imports, 0 dependents.

File javascript TestingUtilities Fixtures 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  23c4458c_099c_288a_a9b1_ecaeb8f6f372["error.todo-dynamic-gating.js"]
  88970095_8bef_0067_4390_e1cc9fd94459["useEffectWrapper"]
  23c4458c_099c_288a_a9b1_ecaeb8f6f372 --> 88970095_8bef_0067_4390_e1cc9fd94459
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  23c4458c_099c_288a_a9b1_ecaeb8f6f372 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style 23c4458c_099c_288a_a9b1_ecaeb8f6f372 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @dynamicGating:{"source":"shared-runtime"} @inferEffectDependencies @panicThreshold:"none"

import useEffectWrapper from 'useEffectWrapper';
import {AUTODEPS} from 'react';

/**
 * TODO: run the non-forget enabled version through the effect inference
 * pipeline.
 */
function Component({foo}) {
  'use memo if(getTrue)';
  const arr = [];
  useEffectWrapper(() => arr.push(foo), AUTODEPS);
  arr.push(2);
  return arr;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{foo: 1}],
  sequentialRenders: [{foo: 1}, {foo: 2}],
};

Subdomains

Functions

Dependencies

  • react
  • useEffectWrapper

Frequently Asked Questions

What does error.todo-dynamic-gating.js do?
error.todo-dynamic-gating.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.todo-dynamic-gating.js?
error.todo-dynamic-gating.js defines 1 function(s): Component.
What does error.todo-dynamic-gating.js depend on?
error.todo-dynamic-gating.js imports 2 module(s): react, useEffectWrapper.
Where is error.todo-dynamic-gating.js in the architecture?
error.todo-dynamic-gating.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/infer-effect-dependencies/bailout-retry/error.todo-dynamic-gating.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/infer-effect-dependencies/bailout-retry).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free