Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA flag that announces a new app version with Reload now and Later, where Later snoozes it for a set time and a second release overrides the snooze.
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 single-page app or PWA can detect a deployed update while someone is working.
Do not use it when you can safely hot-reload or the update is security critical (force the reload).
It composes flag, which the CLI installs for you.
import { FlagNewVersionReload } from "@/components/flag-new-version-reload"<FlagNewVersionReload
availableVersion={serverVersion !== appVersion ? serverVersion : null}
onReload={() => location.reload()}
/>| Prop | Type | Required | Description |
|---|---|---|---|
availableVersion | string | null | required | The version the server now serves, or null when nothing new. |
onReload | () => void | required | Called when the person chooses Reload now. |
snoozeMs | number | optional | Snooze time after Later, in ms. Default 3600000 (one hour). |
now | () => number | optional | Clock override for tests. |
The pattern ships with a Testing Library test (flag-new-version-reload.test.tsx) that covers nothing when current, reloading, snoozing with expiry and overriding the snooze.