Enum RenderStrategy
Which renderer a preview uses. Both renderers exist in the sidecar; this selects between them.
Namespace: BlazorToolkit.Previews
Assembly: BlazorToolkit.Previews.dll
Syntax
public enum RenderStrategy
Remarks
Interactive (the default) renders the component in a live Blazor Server circuit with
prerendering off, so @onclick, real JS interop (including from OnInitializedAsync), and
OnAfterRender all run — the faithful view for interactive and JS-dependent components.
Static renders a single static SSR pass (no circuit): interaction and JS-painted content
(charts, JS-initialized widgets) are absent, but it is the only mode that shows the true server-rendered
snapshot and [StreamRendering], and it is a cheaper flicker-free render for pure-markup components
(for which Static and Interactive are visually identical).
Fields
| Name | Description |
|---|---|
| Interactive | Live Blazor Server circuit, prerender off. The default. |
| Static | Single static SSR pass, no circuit. |