Skip to content

ProductScope

ProductScope(__namedParameters): Element

Draws a section for one product. Which product is chosen by the presentation’s own product field: set, it is drawn by PinnedProduct, which reads that key through the provider’s per-key store; empty, it is drawn by RouteProduct, which reads the product the address names. They are two components so no hook is called conditionally, and a pinned product works on an experience that has no route data at all. With neither a pinned product nor a product address the section draws nothing and, in development, says so.

ProductScopeProps

Element