Setting the file. One moment.
Subchapter 1.46
references/context-provider/vertical-contexts/bookings/services.mdMarkdown3 KBView on GitHub
@wix/bookings/context/servicesRead Importing a Context in Code first. Import only the hook, from @wix/bookings/context/services.
Loads a paged list of bookable services, filtered by the category and location in the page URL or a category-list item, and narrowed by the service and category pickers.
import { ServicesContextProvider } from '@wix/bookings/context/services';__0: ServicesContextProviderPropsElementReads the services list state; throws when no ServicesContextProvider is above.
import { useServicesContext } from '@wix/bookings/context/services';ServicesContextValue| Property | Type | Description |
|---|---|---|
categoryData | { categoryId?: string | null | undefined; } | undefined | |
limit | number | undefined | |
servicesPicker | ServicesPickerFilter | undefined | |
categoriesPicker | CategoriesPickerFilter | undefined | |
refreshSignal | number | undefined | |
children | ReactNode |
| Property | Type | Description |
|---|---|---|
serviceItems | ServiceItem[] | |
bookingsSettings | ExposedBookingsSettings | null | |
hasMore | boolean | |
isLoading | boolean | |
hasError | boolean | |
categoryId | string | null | |
locationId | string | null | |
loadMore | () => Promise<void> |
| Property | Type | Description |
|---|---|---|
serviceId | string | null | |
refreshSignal | number | |
service | Service$1 | |
masterEvents | Event[] | |
serviceOptionsAndVariants | ServiceOptionsAndVariants$1 | null | Null when not VARIED, not loaded yet, or failed (a failed refetch keeps the last value). |
bookingsSettings | ExposedBookingsSettings | |
servicePageLink | Link | null | The service page, resolved like every in-app link to it (custom URL structure first). Read by the gallery converter (data-conversions), which has no site services to resolve it itself. Runtime-only: not declared in the manifest, so it is not a bindable field (the full item rides through regardless). Null when the page can’t be resolved (no slug, no service page section). |
| Property | Type | Description |
|---|---|---|
displayTimeZonePolicy | DisplayTimeZonePolicy | |
multiServiceAppointmentsEnabled | boolean |