try-catch-maybe-null-dependency.ts — react Source File
Architecture documentation for try-catch-maybe-null-dependency.ts, a typescript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c7848bb7_2630_3d68_004f_f2f632eb6900["try-catch-maybe-null-dependency.ts"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] c7848bb7_2630_3d68_004f_f2f632eb6900 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style c7848bb7_2630_3d68_004f_f2f632eb6900 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {identity} from 'shared-runtime';
/**
* Not safe to hoist read of maybeNullObject.value.inner outside of the
* try-catch block, as that might throw
*/
function useFoo(maybeNullObject: {value: {inner: number}} | null) {
const y = [];
try {
y.push(identity(maybeNullObject.value.inner));
} catch {
y.push('null');
}
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [null],
sequentialRenders: [null, {value: 2}, {value: 3}, null],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does try-catch-maybe-null-dependency.ts do?
try-catch-maybe-null-dependency.ts is a source file in the react codebase, written in typescript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in try-catch-maybe-null-dependency.ts?
try-catch-maybe-null-dependency.ts defines 1 function(s): useFoo.
What does try-catch-maybe-null-dependency.ts depend on?
try-catch-maybe-null-dependency.ts imports 1 module(s): shared-runtime.
Where is try-catch-maybe-null-dependency.ts in the architecture?
try-catch-maybe-null-dependency.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/try-catch-maybe-null-dependency.ts (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