In UI Patterns 2, we didn't care so much about required props because it was managed by the Form API:
#required render propertyIn Display Builder, we can render component without subimiting ComponentForm:
So we have this fatal error:
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template The property xxx is required."
Add default values to required props.
There is 2 places where we can do this:
ComponentLibraryPanel: this is the best place in my himble opinion, because the logic is executed only once by buildign session and can be easily cachedInstance::attachToRoot and Instance::attachToSlot, so executed at each attachmentThe logic, if the prop is required
default value if existexamples value if existWe can go further, but it would be come complicated.
Do we need to add the rule in sdc_devel: "each required prop must have a default value" ?
Needs work
1.0
State Manager
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.