PageWidgetsProvider
To use a custom selector of widget components, wrap the selector with PageWidgetsProvider before adding it to the root provider of your React application integrated with the Sitecore Discover platform.
For the page URL, use the usePageWidgets query hook in your selector component, and pass it through the withPageWidgets function.
Import path
Import path
Example
Example
The following code block shows the WidgetsProvider component with credentials for authentication when your domain is not set up with Discover.
Note
In the following code block, publicSuffix has been set to true because the top-level domain of this implementation restricts cookies.
header_ps and footer_rec are configured to appear on all pages in the CEC.