synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
21 lines • 891 B
TypeScript
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