BuildNotificationState

next-build-notifier · /index·type

The reactive state + actions exposed by the engine, context hook, and render-prop.

Properties

check
() => void
Trigger an immediate version check.
currentBuildId
string
The client's own baked build id.
dismiss
() => void
Dismiss the current update (persisted per build id).
dismissed
boolean
``true`` only while ``updateAvailable`` is also ``true`` and the user dismissed *this* build id — there is nothing to dismiss otherwise. The per-id dismissal persists so a *newer* build re-surfaces (flips ``dismissed`` back to ``false``).
lastCheckedAt
number | null
Epoch ms of the last successful check, or ``null``.

WithBuildNotifierOptions withBuildNotifier BuildNotifierConfig BuildNotifierProps BuildNotifierProviderProps VersionResponse BuildNotifier BuildNotifierProvider

Metadata@nordcom/commerce-next-build-notifier@0.2.2Open in GitHub ↗

On this page