NotificationListener
Headless SSE listener that connects to the notification stream. Fires a callback on each incoming notification. No visual output.
Basic
NotificationListener is a headless component with no visual output. It connects to an SSE stream
and fires
onNotification callbacks. Reconnects automatically with exponential backoff (1s–30s,
max 5 attempts).Typical usage:
<NotificationListener
onNotification={(n) => store.add(n)}
onReconnect={(attempt) => console.log('Reconnecting...', attempt)}
/> Loading...
Loading syntax highlighting...API Reference
5 props
No matching properties |
No matching properties
Installation
Import
Loading...
Loading syntax highlighting...