-
Couldn't load subscription status.
- Fork 10.5k
Description
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" >