Skip to main content

PrerequisiteGateProps

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: Type alias
Package: @ovok/native

Import​

import { PrerequisiteGateProps } from '@ovok/native/ui';

TypeScript shape​

type PrerequisiteGateProps<T> = {
scopeKey: string;
check: () => Promise<T | null | undefined>;
pending?: React.ReactNode;
renderRequired: (requirement: T, refresh: () => void) => React.ReactNode;
onError?: (error: unknown) => void;
children: React.ReactNode;
};

This is a type-level export; it has no call parameters.

Public members​

MemberTypeDetails
scopeKeystring—
check(): Promise<T | null | undefined>Load account-scoped requirements from the host's authorized data source.
pendingReact.ReactNodeOptional. Shown while checking. Defaults to nothing, so protected children never flash.
renderRequired(requirement: T, refresh: () => void): React.ReactNodeRender the required task and call refresh after its save succeeds.
onError(error: unknown) => voidOptional. Check failures fail open; use this callback for logging or telemetry.
childrenReact.ReactNode—

Learn the workflow​

Continue with Ui Modules for the workflow context and examples.

Source​

View the declaration in the SDK source.