Page Selectors
getPageConfigById
Retrieves the page configuration for a page ID from the store.
Usage
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
state
(Object) required: The application state.props
(Object) required: The component props.pageId
(string) required: The page ID to retrieve the configuration for.
Returns
(Object|null): The page configuration for the given ID. If no configuration is found, it returns null
.