Hiyve Components - v1.0.0
    Preparing search index...

    Function useNotificationStream

    • Low-level: subscribe to the per-user notifications/announcements SSE stream. Emits a snapshot on connect, then added/updated/removed/resync. Mirrors useUserChatStream. Prefer useNotifications for the common inbox+unread+read case.

      Parameters

      • userId: string | null | undefined
      • handlers: {
            onError?: (error: Error) => void;
            onEvent?: (event: NotificationStreamEvent) => void;
        }

      Returns void