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 of notifications to load per page. Defaults to
10.Optional display text templates for each notification type. Applied at render time. See Notification Templates.
Returns
Array of notification records, augmented with
title and content if templates are provided.Total number of unread notifications for the current user.
true while a fetch is in progress.true if there are additional pages to load.Triggers loading the next page of notifications and appending them to the list.
Marks a single notification as read with an optimistic local update.
Marks all notifications as read with an optimistic local update.
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.
