web / useProduct
Function: useProduct() ​
useProduct(
slug
):UseProduct
Defined in: apps/web/composables/useProduct/useProduct.ts:17
Parameters ​
slug ​
string
Product slug
Returns ​
UseProductReturn
Description ​
Composable managing product data
Example ​
ts
const { data, loading, fetchProduct } = useProduct('product-slug');