useBuildNotifierEngine

next-build-notifier · /index·function

The polling/compare/dismiss engine behind . Most consumers use the provider + instead of calling this directly.

Behavior: derives active from enabled and a non-dev currentBuildId; on mount (and on the configured triggers/interval) fetches the endpoint and compares the returned id to currentBuildId. A mismatch sets updateAvailable; onUpdateAvailable fires once per new id and autoReload (if set) hard-reloads. Dismissal is keyed by the latest id in sessionStorage.

Signature

@nordcom/commerce-next-build-notifier

Parameters

NameTypeDescription
configBuildNotifierConfig

Returns

The reactive .

WithBuildNotifierOptions withBuildNotifier BuildNotificationState BuildNotifierConfig BuildNotifierProps BuildNotifierProviderProps VersionResponse BuildNotifier

On this page