UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

21 lines 891 B
import { PropsWithChildren } from 'react'; export type SessionInitializedGuardProps = PropsWithChildren<{ /** Optional hint text to display while waiting for session initialization */ hintText?: string; }>; /** * SessionInitializedGuard waits for session initialization to complete before * rendering its children. This component displays a loading screen while the * session is being initialized. This is useful for components that need to ensure * the session state is ready before making any queries or performing operations * that depend on authentication status. * * @example * ```tsx * <SessionInitializedGuard> * <ComponentThatNeedsSession /> * </SessionInitializedGuard> * ``` */ export declare function SessionInitializedGuard(props: SessionInitializedGuardProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=SessionInitializedGuard.d.ts.map