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 for.Returns#
A UseNotificationStoreReturn
object with the following properties:
storeNotificationStore
The notification store instance.stateNotificationStoreState
The current state of the notification store.Example#
Basic usage#
The following example demonstrates how to use the useNotificationStore
hook to access the notification store.