Setting the file. One moment.
Subchapter 1.87
references/context-provider/vertical-contexts/stores/product-item.mdMarkdown1 KBView on GitHub
@wix/stores/context/product-item (part 1 of 3)This context’s reference is split across 3 files: product-item.md, , .
Read Importing a Context in Code first. Import only the hook, from @wix/stores/context/product-item.
Supplies product details and purchase actions for one product list entry.
import { ProductItemContextProvider } from '@wix/stores/context/product-item';__0: ProductItemContextProviderPropsElementReads the product context for the current product list item.
import { useProductItemContext } from '@wix/stores/context/product-item';ProductContextValueimport { useProductItemContextValue } from '@wix/stores/context/product-item';__0: ProductItemuseProductItemContextValue return value (below)| Property | Type | Description |
|---|---|---|
productItem | ProductItem | undefined | |
children | ReactNode |