DocsReact Corestate-managementPendingActionConfirmation
Package: @hexos/react-core

Represents a pending action confirmation waiting for user decision.

Created when an action with confirmationMessage is triggered. The resolve function is called with the user’s decision (true to confirm, false to cancel).

Related: ActionConfirmDialog renders the confirmation UI, pendingActionConfirmationsAtom stores these entries.

interface PendingActionConfirmation {
    id: string;
    actionName: string;
    args: unknown;
    message: string;
    resolve: (confirmed: boolean) => void;
}

id

string

actionName

string

args

unknown

message

string

resolve

(confirmed: boolean) => void