Skip to main content

useProductSearch

@shopify/shop-minis-platform-sdk / hooks/useProductSearch

useProductSearch()

useProductSearch(__namedParameters): object

Parameters

ParameterType
__namedParametersobject
__namedParameters.after?null | string
__namedParameters.filters?null | ProductFiltersInput
__namedParameters.firstnumber
__namedParameters.includeVariants?boolean
__namedParameters.query?null | string
__namedParameters.skipboolean
__namedParameters.sortBy?null | ProductSearchSortBy

Returns

object

hasNextPage

hasNextPage: boolean

loading

loading: boolean

loadMore()

loadMore: () => Promise\<void>

Returns

Promise\<void>

products

products: undefined | ProductSearchNodesProduct[]