# Products
# Features
useProduct
composition API function is responsible for fetching a list of products.
# API
useProduct
contains following properties:
search
- a main querying function that is used to query products from eCommerce platform and populate theproducts
object with the result. Every time you invoke this function API request is made. This method accepts a singleparams
object,
{
catId?: string | string[];
skus?: string[];
slug?: string;
perPage?: number;
page?: number;
sort?: any;
term?: any;
filters?: any;
}
products
- a main data object that contains an array of products fetched bysearch
method,loading
- a reactive object containing information about loading state of yoursearch
method.
← useCart useWishlist →