We are looking for a better way to fetch products with videos attached.
Our current flow is:
-
Fetch products using SDK hooks like usePopularProducts, useRecommendedProducts, useRecentProducts, or useProductSearch
-
For each product, call useProductMedia to get its media
-
Filter out products without video on the client
This means we’re doing 1 batch request + N media requests for each page of results. It’s slow since most products don’t have video.
Looking for a way to:
-
Filter for “products with video” directly in the hook
-
Get media type info included in the product list response so we can skip the per-product useProductMedia calls?