Skip to main content

Interface: UseProductSpecsReturn

Defined in: composables/react/useProductSpecs.ts:39

State and actions returned by useProductSpecs.

Properties

attributes

attributes: AttributeResult[]

Defined in: composables/react/useProductSpecs.ts:41

Raw attribute results for the fetched product.


error

error: string | null

Defined in: composables/react/useProductSpecs.ts:47

Last error message, or null.


fetchSpecs

fetchSpecs: (productId) => Promise<void>

Defined in: composables/react/useProductSpecs.ts:49

Fetches and groups the public attributes for a product.

Parameters

productId

number

Returns

Promise<void>


groupedAttributes

groupedAttributes: AttributeGroup[]

Defined in: composables/react/useProductSpecs.ts:43

Attributes organised into display groups.


loading

loading: boolean

Defined in: composables/react/useProductSpecs.ts:45

true while a specs fetch is in flight.