Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA background task failure that stays on screen as a flag with a Retry that counts attempts, disables while retrying and clears itself on success.
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 a background job (sync, upload, save) failed and the person must know until it works, without a timer deciding for them.
Do not use it when failure is expected and harmless (log it quietly) or the error needs the person's input (use a dialog or inline field error).
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 |
|---|---|---|---|
task | string | required | What failed, for example "Sync". |
run | () => Promise<void> | required | Runs the task again. Resolve for success, reject for failure. |
initiallyFailed | boolean | optional | Start in the failed state. Default true. |
maxAttempts | number | optional | After this many failed attempts the flag asks for help instead. Default 3. |
helpHref | string | optional | Shown after maxAttempts failures. |
The pattern ships with a Testing Library test (flag-persistent-error-retry.test.tsx) that covers the alert and attempt count, single retry with success and exhausting the attempts.