Skip to main content

Interface: AlertStore

Defined in: src/stores/alerts/useAlertStore.ts:93

Store contract for managing in-app alerts.

Propertiesโ€‹

alertsโ€‹

readonly alerts: StatusAlert[]

Defined in: src/stores/alerts/useAlertStore.ts:95

Ordered queue of active alerts (newest first).


clearAlerts()โ€‹

readonly clearAlerts: () => void

Defined in: src/stores/alerts/useAlertStore.ts:97

Removes all queued alerts.

Returnsโ€‹

void


dismissAlert()โ€‹

readonly dismissAlert: (id: string) => void

Defined in: src/stores/alerts/useAlertStore.ts:99

Removes a specific alert by identifier.

Parametersโ€‹

idโ€‹

string

Returnsโ€‹

void


enqueueAlert()โ€‹

readonly enqueueAlert: (input: StatusAlertInput) => StatusAlert

Defined in: src/stores/alerts/useAlertStore.ts:104

Enqueues a new alert and trims the queue to MAX_ALERT_QUEUE_LENGTH items.

Parametersโ€‹

inputโ€‹

StatusAlertInput

Returnsโ€‹

StatusAlert