web / useCart
Function: useCart() ​
useCart():
UseCart
Defined in: apps/web/composables/useCart/useCart.ts:58
Returns ​
UseCartReturn
Description ​
Composable for managing cart.
Example ​
ts
const {
data, loading, getCart, setCart, clearCartItems, addToCart, setCartItemQuantity, deleteCartItem
} = useCart();