Setting the file. One moment.
Subchapter 1.91
references/context-provider/vertical-contexts/stores/product.mdMarkdown1 KBView on GitHub
@wix/stores/context/product (part 1 of 2)This context’s reference is split across 2 files: product.md, .
Read Importing a Context in Code first. Import only the hook, from @wix/stores/context/product.
Supplies a product context value to descendant components.
import { ProductContextProvider } from '@wix/stores/context/product';__0: ProductContextProviderPropsReactNodeThe Product context provides access to a store product’s details, prices, media, and stock, and to the visitor’s selection of options, modifiers, subscription plan, and quantity. Use it to show a product, let visitors choose what to buy, and let them add their selection to the cart, start a checkout, or sign up for a back-in-stock email.
import { useProductContext } from '@wix/stores/context/product';ProductContextValue| Property | Type | Description |
|---|---|---|
value | ProductContextValue | undefined | |
children | ReactNode |