You are reading the documentation for Vue Storefront v2. See the latest docs.

Home > @vue-storefront/core > useCartFactory

useCartFactory variable

Signature:

useCartFactory: <CART, CART_ITEM, PRODUCT, API extends PlatformApi = any>(factoryParams: UseCartFactoryParams<CART, CART_ITEM, PRODUCT, API>) => () => UseCart<CART, CART_ITEM, PRODUCT, API>