Skip to main content

Function: useProductInfo()

useProductInfo(options): UseProductInfoReturn

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

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 runs two sequential calls — first services.orderlist.getOrderlists() (OrderlistService, only when a user + company are present, to resolve price-tier orderlist ids), then 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.