Skip to main content

useProductList

The useProductList hook fetches a single product collection by its ID. To fetch all of the user's collections at once, use useProductLists() instead.

Anchor to params
params

Examples

tsx

import {useProductList} from '@shopify/shop-minis-react'

export default function MyComponent() {
const {productList, loading, error} = useProductList({
id: 'gid://shopapp/ProductList/123',
})

console.log({productList, loading, error})
}

Was this page helpful?