Skip to content

Commit e919cd8

Browse files
Update RazorComponentResultHost.cs
1 parent 67aa9d5 commit e919cd8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Mvc/Mvc.ViewFeatures/src/RazorComponents/RazorComponentResultHost.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ private void BuildRenderTree(RenderTreeBuilder builder)
6161

6262
private void RenderPageWithParameters(RenderTreeBuilder builder)
6363
{
64+
// If we wanted to support rendering pre-instantiated component objects, it would probably go here
65+
// as either a whole new RenderTreeFrame type or as some mechanism to attach the instance onto a
66+
// regular Component frame (perhaps using a dummy ComponentState that represents 'not yet initialized')
6467
builder.OpenComponent(0, RazorComponentResult.ComponentType);
6568

6669
if (RazorComponentResult.Parameters is not null)

0 commit comments

Comments
 (0)