Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProConnection status as flags: a persistent offline flag with a retry check, and a short back-online confirmation that dismisses itself.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use this when the app keeps working offline or loses work when the connection drops: editors, field apps, chat.
Do not use it when the app cannot work offline at all (show a full-page state instead).
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Required | Description |
|---|---|---|---|
ping | () => Promise<void> | optional | Optional check that really reaches the server. Resolve if reachable. |
onlineMs | number | optional | How long the back-online message stays, in ms. Default 4000. |
The pattern ships with a Testing Library test (flag-offline-reconnect.test.tsx) that covers nothing online, the offline alert, back online expiry and the real check success or failure.