ExternalDataComponent() — react Function Reference
Architecture documentation for the ExternalDataComponent() function in invalid-set-state-in-effect-verbose-force-update.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD df370360_2c49_a05b_e8bd_354661350371["ExternalDataComponent()"] 350af822_8d86_2aa4_ff05_9cbdbf7fe542["invalid-set-state-in-effect-verbose-force-update.js"] df370360_2c49_a05b_e8bd_354661350371 -->|defined in| 350af822_8d86_2aa4_ff05_9cbdbf7fe542 style df370360_2c49_a05b_e8bd_354661350371 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/invalid-set-state-in-effect-verbose-force-update.js lines 14–23
function ExternalDataComponent() {
const [, forceUpdate] = useState({});
useEffect(() => {
const unsubscribe = externalStore.subscribe(() => {
forceUpdate({});
});
return unsubscribe;
}, []);
return <div>{externalStore.getValue()}</div>;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ExternalDataComponent() do?
ExternalDataComponent() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/invalid-set-state-in-effect-verbose-force-update.js.
Where is ExternalDataComponent() defined?
ExternalDataComponent() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/invalid-set-state-in-effect-verbose-force-update.js at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free