Shopvento UI - v0.2.0
    Preparing search index...

    Function useBookingDraft

    • Key must include installation and event to avoid cross-installation drafts.

      Parameters

      • key: string

      Returns {
          clear: () => void;
          draft: BookingDraft;
          ready: boolean;
          setDraft: Dispatch<SetStateAction<BookingDraft>>;
      }

      • clear: () => void

        Remove the stored draft and reset in-memory state.

      • draft: BookingDraft

        Current in-memory booking draft.

      • ready: boolean

        Whether the draft has been restored for this key.

      • setDraft: Dispatch<SetStateAction<BookingDraft>>

        Update the in-memory and persisted draft.