Skip to main content

useProducts

The useProducts hook efficiently fetches multiple products in a single batched request. Takes an array of product IDs and returns complete product data. Ideal for product grids, carousels, or any UI displaying multiple products. All products share a single query cache entry, making this more efficient than multiple useProduct() calls. The entire query refetches if any ID in the array changes.

Anchor to params
params
required


Was this page helpful?