dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

Home Page:https://asp.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render sequence seems to be incorrect

vrassouli opened this issue · comments

While reviewing the source code for the EditForm, I noticed these two lines use the same sequence number 7.
Is this correct? sholdn't it be 7, 8, 9, ...?

builder.OpenComponent<CascadingValue<EditContext>>(7);

builder.AddComponentParameter(7, "IsFixed", true);

commented

Thanks for contacting us. The general rule of thumb is that you should use incremental numbers if you implement your own logic.
However, there are some "internal" nuances that we don't document which still make this code work correctly.