Blazor - OnAfterRenderAsync being fired during PreRendering and then again later #13599
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: By Design
Resolved because the behavior in this issue is the intended design.
Related to #11876
(8 3.0.100-preview8-013656)
It's not calling the methods twice on "a" component. It actually creates two components that each have their events fired. But the prerender one fails to get dotnet references.
Remove Html.RenderStaticComponentAsync and the problem goes away.
The bigger problem is that OnAfterRenderAsync is firing on the prerendering pass
Reproduce:
dotnet new blazorserver
add to Index.razor
Below is the output (OnAfterRenderAsync
there appears twice)
The text was updated successfully, but these errors were encountered: