useProductSearch
@shopify/shop-minis-platform-sdk / hooks/useProductSearch
useProductSearch()
useProductSearch(
__namedParameters
):object
Parameters
Parameter | Type |
---|---|
__namedParameters | object |
__namedParameters.after ? | null | string |
__namedParameters.filters ? | null | ProductFiltersInput |
__namedParameters.first | number |
__namedParameters.includeVariants ? | boolean |
__namedParameters.query ? | null | string |
__namedParameters.skip | boolean |
__namedParameters.sortBy ? | null | ProductSearchSortBy |
Returns
object
hasNextPage
hasNextPage:
boolean
loading
loading:
boolean
loadMore()
loadMore: () =>
Promise
\<void
>
Returns
Promise
\<void
>
products
products:
undefined
|ProductSearchNodesProduct
[]