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.
Parameters
Section titled “Parameters”product
Section titled “product”Product<Record<string, unknown>> | undefined
limit?
Section titled “limit?”number = Infinity
Returns
Section titled “Returns”object
images
Section titled “images”images:
ProductImage[]
pending
Section titled “pending”pending:
boolean