Skip to main content

Function: useProductGridConfig()

useProductGridConfig(): ProductGridConfig | null

Defined in: context/ProductGridContext.tsx:146

Reads the ProductGridConfig from context.

Non-throwing: ProductCard/ClusterCard used outside a grid (ProductSlider, standalone, tests) get null and fall back to explicit props / defaults.

Returns

ProductGridConfig | null

The grid config, or null when rendered outside a provider.