Options for creating a notification service via createNotificationService().
const notifService = createNotificationService({ onChange: (notifications) => console.log('Notifications:', notifications.length), maxPerWindow: 50,}); Copy
const notifService = createNotificationService({ onChange: (notifications) => console.log('Notifications:', notifications.length), maxPerWindow: 50,});
Optional
Maximum notifications to retain per window. Oldest are evicted when the limit is exceeded. Default: 100.
Called when the notification list changes (create, dismiss, read). The shell host uses this to update UI (toast, badge, etc.).
Options for creating a notification service via createNotificationService().
Example