const { notifications } = useClientNotifications();useClientNotifications
useClientNotifications listens to client-side notifications and returns the notifications list.
Best Practices
- Use this hook to centralize notification intake from the client.
- Avoid duplicating notification state in multiple components.
- Keep list rendering lightweight for frequent updates.
- Filter or batch notifications if your UI can’t show all of them.
- Clear notifications when they are acknowledged or acted upon.