Toolbelt.Blazor.HeadElement icon indicating copy to clipboard operation
Toolbelt.Blazor.HeadElement copied to clipboard

Cannot process pending renders after the renderer has been disposed.

Open vd3d opened this issue 5 years ago • 2 comments

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.<UpdateEditorState>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 avatar Jun 30 '20 07:06 vd3d

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

vd3d avatar Jun 30 '20 10:06 vd3d

@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".

jsakamoto avatar Jul 01 '20 13:07 jsakamoto