Skip to content

Component Renderer for non-blazor WebASsembly #56986

Closed Answered by SerratedSharp
SerratedSharp asked this question in Q&A
Discussion options

You must be logged in to vote

This is one of those things where you spend hours, and feel stuck, post a question, and then 10 minutes later you find a solution. It was big thanks to Steve Sanderson for leaving this comment in StaticHtmlRender (I'm so thankful when people actually comment code and don't take for granted that the "why"/rational is implicitly understood):

//     protected override Task UpdateDisplayAsync(in RenderBatch renderBatch)
//{
//    // By default we return a canceled task. This has the effect of making it so that the
//    // OnAfterRenderAsync callbacks on components don't run by default.
//    // This way, by default prerendering gets the correct behavior and other renderers
//    // override …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SerratedSharp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant