commerce
commerce copied to clipboard
Show all products in collection from useSearch hook
Hi All,
I am looking to show all the products within a collection. Currently using the out of the box useSearch
hook. But looking to show all products similarly to
commerce.getAllProducts({ variables: { first: 1 }, config, preview, })
would love any help, thanks!!
I wonder what you mean by a "collection": product category or brand (designer)?
Product category I assume. I have the same question :)
Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: https://github.com/vercel/commerce/pull/966