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
function useBuildNotifierEngine(config: BuildNotifierConfig): BuildNotificationState;Parameters
| Name | Type | Description |
|---|---|---|
config | BuildNotifierConfig |
Returns
The reactive .
Related
WithBuildNotifierOptions withBuildNotifier BuildNotificationState BuildNotifierConfig BuildNotifierProps BuildNotifierProviderProps VersionResponse BuildNotifier
Sourceuse-build-notifier-engine.tsclient/use-build-notifier-engine.tsclient/use-build-notifier-engine.ts:24↗Edit the JSDoc directly