To enable Chrome's hydration process in Pages, we need to modify the JSS Placeholder component in the sitecore-jss-react SDKs. We need to emit shallow chromes and required data for placeholders and renderings.
Introduced a new PlaceholderMetadata component to emit shallow chromes.
Placeholder component now uses sitecoreContext to access editMode: "chromes" | "metadata" property from Layout Service.
Testing Details
[x] Unit Test Added
[ ] Manual Test/Other (Please elaborate)
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description / Motivation
To enable Chrome's hydration process in Pages, we need to modify the JSS Placeholder component in the sitecore-jss-react SDKs. We need to emit shallow chromes and required data for placeholders and renderings.
PlaceholderMetadata
component to emit shallow chromes.sitecoreContext
to accesseditMode: "chromes" | "metadata"
property from Layout Service.Testing Details
Types of changes