Skip to content

@swapped/connect-sdk / react / UseSessionResult

Type Alias: UseSessionResult

UseSessionResult = object

Defined in: src/react/session/hooks/useSession.ts:6

Properties

error

error: string | null

Defined in: src/react/session/hooks/useSession.ts:16

Last session request error message, or null.


isLoading

isLoading: boolean

Defined in: src/react/session/hooks/useSession.ts:12

Whether an initial session load is in progress.


isRestarting

isRestarting: boolean

Defined in: src/react/session/hooks/useSession.ts:14

Whether a session restart is in progress.


session

session: SessionData | null

Defined in: src/react/session/hooks/useSession.ts:8

Loaded session payload, or null if none.


sessionId

sessionId: string

Defined in: src/react/session/hooks/useSession.ts:10

Active session id (empty string when unset).