In-App UI
React
Hooks
useNotificationStore
useNotificationStore
The useNotificationStore
hook provides direct access to the notification store state and actions. This is a lower-level hook that gives you more control over the notification feed state.
Parameters#
Accepts an object (UseNotificationStoreParams
) with the following properties:
feedIdstring
The ID of the feed to access the store forReturns#
A UseNotificationStoreReturn
object with the following properties:
storeNotificationStore
The notification store instancestateNotificationStoreState
The current state of the notification storeExample#
Basic usage#
The following example demonstrates how to use the useNotificationStore
hook to access the notification store.