Skip to main content

Function: useProductInfo()

useProductInfo(options): UseProductInfoReturn

Defined in: composables/react/useProductInfo.ts:112

useProductInfo — sequential product / cluster data fetching.

Parameters​

options​

UseProductInfoOptions

see UseProductInfoOptions.

Returns​

UseProductInfoReturn

product/cluster state, fetch actions and cluster display helpers — see UseProductInfoReturn.

Remarks​

GraphQL integration: services are built per-call via createServices(graphqlClient). fetchProduct calls services.product.getProduct() (ProductService) with priceCalculateProductInput / userBulkPriceProductInput for per-user pricing. fetchCluster runs services.cluster.getClusterConfig() then services.cluster.getCluster() (ClusterService), passing the config-derived attribute names. The cluster display helpers are pure derivations of cluster.