What problem does it solve?
This Skill resolves issues related to the interaction between Blazor components and the rendering process, ensuring seamless user experience and preventing common bugs during the handoff from static to interactive rendering.
Core Features & Use Cases
- Fix Duplicate Data Loads: Prevents data flicker and redundant API calls during the handoff.
- Handle Prerendering: Offers guidance on managing the default behavior and exceptions to the rule.
- Persist State Across Prerender: Helps maintain component state across the static and interactive rendering.
- Disable Prerendering: Enables disabling prerendering for components that need direct browser interaction.
- Exclude Pages from Interactive Routing: Ensures proper rendering of pages requiring full
HttpContext access.
- Detect Prerender vs Interactive: Allows developers to conditionally execute code based on the current rendering mode.
- Client Services Availability: Addresses issues with client-side services in server-side prerendering.
- Avoid Common Mistakes: Provides do's and don'ts to avoid common pitfalls when working with Blazor and prerendering.
Quick Start
Enable the support-prerendering skill for your Blazor app to optimize component interaction with the rendering process.