PendingMutation
●cart · /react·type
A single mutation in flight through the optimistic queue — from when it is
first predicted through server confirmation or failure. status and error
are the fields consumers typically use to show per-line loading spinners or
inline error messages.
Properties
PROPTYPEDESCRIPTION
Example
const pending = useCartPending(lineId);
if (pending && pending.status === 'in-flight') {
showSpinner();
}Related
CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions
NoteActions
Cartnote mutation method added to when CartCapabilities.notes is true. Replaces the entire cart note with a new string; pass an empty string to clear.
PredictorCtx
Contextual snapshot passed to every and invocation. Predictors use these fields to implement deltaaware projections that compare confirmed versus current projec