Appearance
@swapped/connect-sdk / react / useSession
Function: useSession()
useSession():
UseSessionResult
Defined in: src/react/session/hooks/useSession.ts:29
Subscribe to the current session payload and load state.
Prefer useSessionView for screen routing. Use this hook when you need session fields (merchant, wallets, etc.) or loading / error UI. For restart button loading, prefer useRestartSession (or isRestarting here).