Allow components without ChildContent to be added to RenderTree #1179
Labels
enhancement
New feature or request
needs design
More design is needed before this issue should result in a feature being implemented.
Milestone
Users sometimes need to add mandatory components into the render tree that does not have a
ChildContent
parameter.The
RenderTree
currently only allows adding components that has aChildContent
property, but that is an arbitrary limitation we can work around.Now, if you call
RenderTree.Add
, the component is added as a child of the previous component.However, I see no downside in allowing
RenderFragment
s in general to be added to the render tree.IFF a component with a ChildContent is added, then any other components or fragments will be added as children under that. If not, they are added at the root.
There are probably some edge cases I haven't thought about, so lets discuss first.
The text was updated successfully, but these errors were encountered: