# 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 theproductsobject with the result. Every time you invoke this function API request is made. This method accepts a singleparamsobject,
{
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 bysearchmethod,loading- a reactive object containing information about loading state of yoursearchmethod.
← useCart useWishlist →