How to implement subcomponents #145
jonasbovyn
started this conversation in
Brainstorm
Replies: 1 comment
-
You can't really limit every component to be displayed only once, as multiple components may need it as subcomponent A possibility is to only display a component as a root component (not being a subcomponent) if it wasn't included in at least one other component. So in the case of the TelephoneNumber, it wouldn't be displayed as its own component |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In its current idea, all components are decentralized and a component may use other components as subcomponents.
Imagine the case where you have 2 components: a TelephoneNumber component and a User component. The User component contains a TelephoneNumber components as its subcomponent
Now semcom will identify & display TelephoneNumber twice, once as a subcomponent of User, and once as its own individual component
This is probably not the behavior you want, so how would this best be dealed with?
Beta Was this translation helpful? Give feedback.
All reactions