Enode — API Reference
    Preparing search index...

    The account's notification choices and how to change them, see useNotificationChoices.

    type NotificationChoices = {
        failedChoice: FailedNotificationChoice | null;
        retry: () => void;
        role: NotificationRole;
        state: NotificationsLoadState;
        toggle: (
            category: NotificationCategory,
            channel: NotificationChannel,
            value: boolean,
        ) => void;
    }
    Index

    Properties

    failedChoice: FailedNotificationChoice | null
    retry: () => void

    Loads the choices again (after a load error).

    toggle: (
        category: NotificationCategory,
        channel: NotificationChannel,
        value: boolean,
    ) => void

    Sets one switch and saves it at once (optimistic, reverted on failure).