const { notifications } = useClientNotifications();This is documentation for Stream Chat React Native SDK v8, which is no longer actively maintained. For up-to-date documentation, see the latest version (v9).
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.