Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configures interactive Blazor components to handle prerendering, state persistence, and handoff.
82% 95%+14 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 18 of 22 without it.
Show the syntax for disabling initial static prerendering directly at the component definition level for a Blazor Web App page that uses Interactive Auto render mode.
Specifies @rendermode @(new InteractiveAutoRenderMode(prerender: false)).
Its SkillScore uses its best run instead: +18 pts on gemini-3.6-flash, Aug 9, 2026.
3 of 3 safety checks passed
Prerendering is on by default for all interactive render modes. The server renders the component as static HTML and ships it to the browser immediately. Then the interactive runtime (Server/WebAssembly) loads and re-renders the component with full interactivity.
This means:
OnInitializedAsync runs twice — once during prerender (static), once when the interactive runtime attaches.OnAfterRenderAsync is NOT called during prerender — only after the interactive render.Check the project's AGENTS.md for the Interactivity Mode and Interactivity Scope:
| Mode | Prerendering applies? |
|---|---|
| None (Static SSR) | No — there's no interactive handoff |
| Server | Yes |
| WebAssembly | Yes |
| Auto | Yes |
If the mode is None, this skill doesn't apply.
The most common prerendering problem: data loaded in OnInitializedAsync during prerender is thrown away and re-fetched when the interactive runtime attaches. This causes flicker and duplicate API/DB calls.
[PersistentState] attributeAnnotate properties to automatically serialize during prerender and restore on interactive activation:
@page "/forecasts"
@rendermode InteractiveServer
<h1>Weather</h1>
@if (Forecasts is null)
{
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.