Interface: AlertStore
Defined in: src/stores/alerts/useAlertStore.ts:93
Store contract for managing in-app alerts.
Propertiesโ
alertsโ
readonlyalerts:StatusAlert[]
Defined in: src/stores/alerts/useAlertStore.ts:95
Ordered queue of active alerts (newest first).
clearAlerts()โ
readonlyclearAlerts: () =>void
Defined in: src/stores/alerts/useAlertStore.ts:97
Removes all queued alerts.
Returnsโ
void
dismissAlert()โ
readonlydismissAlert: (id:string) =>void
Defined in: src/stores/alerts/useAlertStore.ts:99
Removes a specific alert by identifier.
Parametersโ
idโ
string
Returnsโ
void
enqueueAlert()โ
readonlyenqueueAlert: (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.