Currently reloading the page re-runs useWallet's isConnected/isAllowed check, which works, but there's no
optimistic "restoring session…" state — the wallet gate briefly flashes before resolving. Add a short-lived
loading state distinct from unavailable/idle that renders while the initial Freighter check is in flight, so
users with an already-approved wallet don't see a false disconnect flash.
Acceptance criteria
Currently reloading the page re-runs
useWallet'sisConnected/isAllowedcheck, which works, but there's nooptimistic "restoring session…" state — the wallet gate briefly flashes before resolving. Add a short-lived
loading state distinct from
unavailable/idlethat renders while the initial Freighter check is in flight, sousers with an already-approved wallet don't see a false disconnect flash.
Acceptance criteria
isConnected/isAllowedresolveclient/src/lib/api.ts) #5