Przejdź do głównej zawartości

Function: executeWithCartRecovery()

executeWithCartRecovery<T>(opts): Promise<T>

Runs an operation against the current cart, recovering once on CART_NOT_FOUND / ALREADY_COMPLETED. Pure async function — non-React consumers can wire this directly without the runner factory.

Type Parameters

T

T

Parameters

opts

ExecuteWithCartRecoveryOptions<T>

Returns

Promise<T>