AuthLoading
Renders fallback while the AuthClient is still bootstrapping
(first network call, token restore, /auth/me confirmation). After
the snapshot reports ready === true, renders children.
Drop this inside your app shell so the first paint doesn’t flash the anonymous UI before the cached session restores.
Usage
import { AuthLoading } from '@rw3iss/auth-client/preact/atoms';
<AuthLoading children={<></>}/>Props
| Name | Type | Description |
|---|---|---|
children | ComponentChildren | (required) |
fallback | ComponentChildren | What to render while loading. Default: a centered spinner. |
client | AuthClient |