Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The list of component records is not valid. #14966

Closed
asdux opened this issue Oct 13, 2019 · 2 comments
Closed

The list of component records is not valid. #14966

asdux opened this issue Oct 13, 2019 · 2 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue

Comments

@asdux
Copy link

asdux commented Oct 13, 2019

I use two blazor components in _layout.cshtml as follows, but the components don't work.

// _layout.cshtml
@(await Html.RenderComponentAsync<Counter>(RenderMode.ServerPrerendered))
<div class="container body-content pt-3">
    @RenderBody()
</div>
// Test.cshtml
@page
@model Web.Pages.TestModel
@(await Html.RenderComponentAsync<Counter>(RenderMode.ServerPrerendered))

image

But, It works if the component is used after @RenderBody() as follows.

<div class="container body-content pt-3">
    @RenderBody()
</div>
@(await Html.RenderComponentAsync<Counter>(RenderMode.ServerPrerendered))
@javiercn javiercn added the area-blazor Includes: Blazor, Razor Components label Oct 14, 2019
@javiercn
Copy link
Member

@asdux Thanks for contacting us.

This might be an issue in the way we store the component sequence numbers in the ViewContext. We'll have to check that the data in the ViewContext gets copied properly.

@mkArtakMSFT mkArtakMSFT added this to the 3.1.0-preview2 milestone Oct 14, 2019
@mkArtakMSFT mkArtakMSFT added this to Triage in Blazor 3.1 via automation Oct 14, 2019
@mkArtakMSFT mkArtakMSFT assigned javiercn and pranavkm and unassigned javiercn Oct 14, 2019
@mkArtakMSFT mkArtakMSFT moved this from Triage to To Do (3.1.0 Preview2) in Blazor 3.1 Oct 14, 2019
@pranavkm
Copy link
Contributor

Closing as dup of #14474. We'll use the other issue to track resolving this.

@pranavkm pranavkm removed this from To Do (3.1.0 Preview2) in Blazor 3.1 Oct 14, 2019
@pranavkm pranavkm added ✔️ Resolution: Duplicate Resolved as a duplicate of another issue and removed investigate labels Oct 14, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants