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

Cannot process pending renders after the renderer has been disposed. #6

Open
vd3d opened this issue Jun 30, 2020 · 2 comments
Open

Comments

@vd3d
Copy link

vd3d commented Jun 30, 2020

Hi,

I got an error : Cannot process pending renders after the renderer has been disposed.

It is when I start the application.

I noticed that if I only use the "Title" tag, it works.

Stack trace

at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessPendingRender()
at Microsoft.AspNetCore.Components.RenderTree.Renderer.AddToRenderQueue(Int32 componentId, RenderFragment renderFragment)
at Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged()
at MyApp.Web.Shared.Application.ApplicationBar.d__21.MoveNext() in C:\MyApp\Web\Shared\Application\ApplicationBar.razor:line 486

Some code

Really nothing special... but

context.Services.AddHeadElementHelper();
app.UseHeadElementServerPrerendering();
<Meta Property="ogp:url" Content="https://www.socloze.com"/>
<Meta Property="ogp:type" Content="website"/>
<Meta Property="ogp:title" Content="SoCloze"/>
<Meta Property="ogp:image" Content="https://www.socloze.com/images/logo!40.png"/>
<Meta Property="og:site_name" Content="SoCloze"/>
<Meta Name="robots" Content="noimageindex, noarchive"/>
<Meta Name="apple-mobile-web-app-status-bar-style" Content="default"/>
<Meta Name="mobile-web-app-capable" Content="yes"/>
<Meta Name="theme-color" Content="#ffffff"/>
<Meta Property="application-name" Name="SoCloze"/>
<Meta Property="description" Name="description" Content="Find products nearby your location and ideas on SoCloze" data-app="true"/>
<Meta Property="og:description" Name="og:description" Content="Find products nearby your location and ideas on SoCloze" data-app="true"/>
@vd3d
Copy link
Author

vd3d commented Jun 30, 2020

It is because of the data-app="true" !

@jsakamoto
Copy link
Owner

@vd3d Could you tell me why you need to add the attribute "data-app=true" into the "meta" tag?

Adding support to accept any attributes is very hard work because this is NOT a simple Blazor component but to save, transfer, and restore complex information between server and clients.

Therefore, I want to know how important adding support to accept the attribute "data-app=true".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants