Products & Search
The SDK provides hooks and services for browsing your Shopify catalog — product listing, single product detail, collections, and full-text search. All queries go through the Shopify Storefront GraphQL API via theProductService.
Quick Reference
| Hook | Returns | Purpose |
|---|---|---|
useProducts() | Paginated product list | Infinite-scroll grids |
useProduct(handle) | Single product | Product detail screen |
useCollections() | Collection list | Collection browser |
useSearch() | Search results | Search input UI |
Service Methods
All hooks wrap theProductService, which is also accessible directly from useStackfront():