Skip to main content

useProductLists

The useProductLists hook fetches all product collections that the user has created. Use this for displaying a user's collections overview or collection picker. For fetching a specific collection's full contents, use useProductList() instead which provides better pagination for individual lists.

Anchor to params
params

Examples

tsx

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

export default function MyComponent() {
const {productLists, loading, error} = useProductLists({
first: 10,
})

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

Was this page helpful?