outlined-function.js — react Source File
Architecture documentation for outlined-function.js, a javascript file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 64751a5a_1fa5_bf4d_9877_4b9d92c59975["outlined-function.js"] c745ba00_63aa_6e9b_0885_a745bade6cf7["react"] 64751a5a_1fa5_bf4d_9877_4b9d92c59975 --> c745ba00_63aa_6e9b_0885_a745bade6cf7 9b88626e_0355_91af_db84_89f44a65ebc6["shared-runtime"] 64751a5a_1fa5_bf4d_9877_4b9d92c59975 --> 9b88626e_0355_91af_db84_89f44a65ebc6 style 64751a5a_1fa5_bf4d_9877_4b9d92c59975 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @inferEffectDependencies
import {useEffect, AUTODEPS} from 'react';
import {print} from 'shared-runtime';
/**
* This compiled output is technically incorrect but this is currently the same
* case as a bailout (an effect that overfires).
*
* To ensure an empty deps array is passed, we need special case
* `InferEffectDependencies` for outlined functions (likely easier) or run it
* before OutlineFunctions
*/
function OutlinedFunctionInEffect() {
useEffect(() => print('hello world!'), AUTODEPS);
}
Domain
Subdomains
Functions
Dependencies
- react
- shared-runtime
Source
Frequently Asked Questions
What does outlined-function.js do?
outlined-function.js is a source file in the react codebase, written in javascript. It belongs to the CompilerCore domain, BabelIntegration subdomain.
What functions are defined in outlined-function.js?
outlined-function.js defines 1 function(s): OutlinedFunctionInEffect.
What does outlined-function.js depend on?
outlined-function.js imports 2 module(s): react, shared-runtime.
Where is outlined-function.js in the architecture?
outlined-function.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/infer-effect-dependencies/outlined-function.js (domain: CompilerCore, subdomain: BabelIntegration, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/infer-effect-dependencies).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free