Skip to content

Allow components without ChildContent to be added to RenderTree #1179

Open
@egil

Description

@egil

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 a ChildContent 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 RenderFragments 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds designMore design is needed before this issue should result in a feature being implemented.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions