-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Focused Improvements] Hidden renderings do not have implementation and result in console error message #834
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sitecore-jss/edge-e2e-styleguide/6cTR63mVMhS6cDXTMCkGWTdbzGwJ [Deployment for e0c620e failed] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple minor things. In general though, I'm wondering if we couldn't have taken a similar approach as we do with Missing Component (injected directly in the framework Placeholder component implementations w/ allowed override if needed)? This approach wouldn't require any change in the samples / component factories.
import { Component } from '@angular/core'; | ||
@Component({ | ||
selector: 'sc-hidden-rendering', | ||
host: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the decision to use host
here instead of template
(like missing-component.component.ts
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because, we need to style wrapper (host means sc-hidden-rendering
tag), in case if I will add template and style it, EE chromes will not be rendered correctly
@ambrauer HiddenRendering component is the same component as others, and missing component rendered if no component is found. In this case it means that we will need to directly check:
Hidden Rendering data doesn't have difference if compare with other components |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, see couple comments. Also, I noticed the Angular sample didn't get the new "packages" treatment for component factory. Should it?
Description / Motivation
[Focused Improvements] Hidden renderings do not have implementation and result in console error message
HiddenRenderings
component will be rendered in case if rendering hidden by personalizationAdded
packages
to component factories, it allows us to import multiple components from the single packageTesting Details
Types of changes
/docs
directory)