Przejdź do głównej zawartości

Function: createCartStore()

createCartStore(config): StoreApi<CartState>

Parameters​

config​

CartStoreConfig

Returns​

StoreApi<CartState>

Deprecated​

Use useCartManager instead. This store predates capability-based carts and does not carry the cart secret, so mutations against a capability cart fail. useCartManager (React) and createCartRecoveryRunner (framework-agnostic core) manage the cart secret automatically. Removed in a future major release.