featherbit UI
    Preparing search index...

    Interface NotificationLog

    What the hook exposes. notify, clear and markSeen are referentially stable.

    interface NotificationLog {
        clear: () => void;
        entries: NotificationEntry[];
        markSeen: () => void;
        notify: (input: NotificationInput) => NotificationEntry;
        unread: number;
    }
    Index
    clear: () => void

    Empties the log, including the persisted copy.

    Newest first.

    markSeen: () => void

    Marks everything logged so far as seen (resets unread).

    Appends an entry (stamped with id + now) and returns it.

    unread: number

    Error entries newer than the last panel open.