Skip to content

Simplified Blazor Component Model to reduce overhead in lists #29159

@neufel42

Description

@neufel42

I would love to see a simplified Blazor Component Model that is just basically a RenderFragment. I have a few lists where each row of the list is a set of components. These are basic components just so I don't have to have 10 lines of html code for each column. These lists when done with components get really slow really fast. (25 - 50 rows and it almost becomes unusable). To work around this I use RenderFragments and it works well and makes it speedy again. However, I then lose the nice readability of using a custom tag for each item. Instead I find myself injecting code within my razor component page.

// This just returns a RenderFragment
@MyComponent.RenderComponent(new MyComponentOptions()
{
Param1="some `Parameter",
Param2="some Parameter",
Param3="some Parameter",
})

instead of:
// Can not use simple components that just basically render html because they make the application way too slow
<MyComponent
Param1="some Parameter",
Param2="some Parameter",
Param3="some Parameter" >

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-mediumThis issue impacts approximately half of our customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneseverity-majorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions