Skip to content

useProductImages

useProductImages(product, limit?): object

The product’s pictures, resolved through the Content client against the environment’s Assets registration, in the order Commerce keeps them (position 0 is the primary). Each id is resolved once for the life of the provider however many sections ask. A picture the registration cannot read (another channel, restricted) is simply left out. pending is true until every picture has answered, so a section can keep its box reserved.

Product<Record<string, unknown>> | undefined

number = Infinity

object

images: ProductImage[]

pending: boolean