Setting the file. One moment.
Subchapter 1.73
references/context-provider/vertical-contexts/stores/category-by-slug.mdMarkdown2 KBView on GitHub
@wix/stores/context/category-by-slugRead Importing a Context in Code first. Import only the hook, from .
@wix/stores/context/category-by-slugLoads the category identified by the page URL and supplies its category and product list contexts.
import { CategoryBySlugContextProvider } from '@wix/stores/context/category-by-slug';__0: CategoryBySlugContextProviderPropsElementimport { CategoryBySlugContextValues } from '@wix/stores/context/category-by-slug';__0: CategoryBySlugContextValuesPropsElementReserved hook. Always throws; read useProductListContext, useCategoryInfoContext, and useCategoryListContext instead.
import { useCategoryBySlugContext } from '@wix/stores/context/category-by-slug';never| Property | Type | Description |
|---|---|---|
productsPerPage | number | undefined | How many products each page request fetches. Declared as a manifest data prop. |
children | ReactNode |
| Property | Type | Description |
|---|---|---|
categoryValue | CategoryInfoContextValue | |
categoryListValue | CategoryListContextValue | |
productListValue | ProductListContextValue | |
children | ReactNode |