Skip to content

AsyncMeta type

Home > @rimitive/view > AsyncMeta

Async fragment metadata for SSR introspection

Signature:

export type AsyncMeta<T = unknown> = {
readonly id?: string;
readonly resolve: () => Promise<T>;
readonly getData: () => T | undefined;
readonly setData: (data: T) => void;
readonly isResolved: () => boolean;
readonly trigger: () => void;
};