BetaBetaDelete a notification
the notification to delete
BetaGet a loaded notification by its id
the id of the notification to get
the fetched notification
BetaLoad all notifications belonging to the logged in user from the server
Optionaloptions: NotificationLoadOptionsoptions to provide when loading notifications
the saved notifications
BetaMark a notification as read or unread
the notification to update
Optionalread: booleanoptional - whether the notification should be marked as read or unread. Defaults to true
the updated notification
Service for handling notifications
The repository methods are generic in
Tso callers can supply the expected shape of Notification.data on a per-call basis. The default isunknown— narrow it at the call site when you know what payload to expect, e.g.repo.get<MentionData>(id).