Page Selectors
getPageConfigById
Section titled “getPageConfigById”Retrieves the page configuration for a page ID from the store.
import { getPageConfigById } from '@shopgate/engage/page';Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7:
import { getPageConfigById } from '@shopgate/pwa-common/selectors/page'
Parameters
Section titled “Parameters”state(Object) required: The application state.props(Object) required: The component props.pageId(string) required: The page ID to retrieve the configuration for.
Returns
Section titled “Returns”(Object|null): The page configuration for the given ID. If no configuration is found, it returns null.

