Home > @vsf-enterprise/sapcc > productGetters

productGetters variable

Returns agnostic product values.

Signature:

productGetters: ExtendedProductGetters<Product>

Example

Example of usage:

const { search, products, loading, error } = useProduct('product-page')
await search({ id: '1043' }); // props are defined by UseProductFactoryProps interface
productGetters.getName(products.value) // should return agnostic name of a product
productGetters.getGallery(products.value) // should return agnostic gallery of images