Overview
Redux-powered hook that provides a paginated notification feed for the current authenticated user. Loads notifications and unread count on mount, supports infinite scrolling vialoadMore, and exposes mark-as-read actions with optimistic updates.
For integration guidance and template configuration, see App Notifications.
Usage Example
Parameters
number
Number of notifications to load per page. Defaults to
10.Partial<NotificationTemplates>
Optional display text templates for each notification type. Applied at render time. See Notification Templates.
Returns
UnifiedAppNotification[]
Array of notification records, augmented with
title and content if templates are provided.number
Total number of unread notifications for the current user.
boolean
true while a fetch is in progress.boolean
true if there are additional pages to load.() => void
Triggers loading the next page of notifications and appending them to the list.
({ notificationId: string }) => Promise<void>
Marks a single notification as read with an optimistic local update.
() => Promise<void>
Marks all notifications as read with an optimistic local update.
() => Promise<void>
Clears and re-fetches from page 1.
This hook requires the current user to be authenticated. It will not load until
user and projectId are available.
