notificationStore
Module-level singleton exposing the unread-notification counter that drives header badges and the toast viewport. Increment/decrement from anywhere; React su…
Module-level singleton exposing the unread-notification counter that drives header badges and the toast viewport. Increment/decrement from anywhere; React subscribers re-render automatically.
import { createNotificationStore } from "@tetherto/mdk-ui-core";State
| Name | Signature |
|---|---|
count | number |
Actions
| Name | Signature |
|---|---|
decrement | () => void |
increment | () => void |
reset | () => void |