MCPcopy Create free account
hub / github.com/ctrlplusb/react-async-component / Configuration

Interface Configuration

index.d.ts:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 * The configuration for an asynchronous component.
5 */
6export interface Configuration<P> {
7 resolve: () => Promise<React.ComponentType<P> | {default: React.ComponentType<P>}>;
8 LoadingComponent?: (props: P) => JSX.Element;
9 ErrorComponent?: (props: P & { error: Error }) => JSX.Element;
10 name?: string;
11 autoResolveES2015Default?: boolean;
12 env?: 'node' | 'browser';
13 serverMode?: 'resolve' | 'defer' | 'boundary';
14}
15
16/**
17 * A wrapper to provide the asynchronous component resolving in a React tree.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…