repro-memoize-for-of-collection-when-loop-body-returns.js — react Source File
Architecture documentation for repro-memoize-for-of-collection-when-loop-body-returns.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function useHook(nodeID, condition) {
const graph = useContext(GraphContext);
const node = nodeID != null ? graph[nodeID] : null;
for (const key of Object.keys(node?.fields ?? {})) {
if (condition) {
return new Class(node.fields?.[field]);
}
}
return new Class();
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does repro-memoize-for-of-collection-when-loop-body-returns.js do?
repro-memoize-for-of-collection-when-loop-body-returns.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 repro-memoize-for-of-collection-when-loop-body-returns.js?
repro-memoize-for-of-collection-when-loop-body-returns.js defines 1 function(s): useHook.
Where is repro-memoize-for-of-collection-when-loop-body-returns.js in the architecture?
repro-memoize-for-of-collection-when-loop-body-returns.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-memoize-for-of-collection-when-loop-body-returns.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