Explain 'Enhanced Navigation' and 'Enhanced Form Handling' in .NET 8 and how Blazor intercepts requests to make SSR feel like a SPA.
Last updated
Enhanced navigation:
blazor.web.jsintercepts internal link clicks, fetches the page viafetch, and diffs the HTML into the current DOM (no full reload, no CSS/JS re-download).Enhanced form handling (opt in with
data-enhanceorEnhanceonEditForm) submits via fetch and patches the response, including validation errors, in place.Result: SPA-like fluidity while pages stay cheap server-rendered SSR, with no WebAssembly download or persistent circuit.
- https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-8.0?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/blazor/forms/?view=aspnetcore-10.0
- https://www.telerik.com/blogs/blazor-basics-exploring-blazor-enhanced-navigation
- https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/navigation?view=aspnetcore-10.0
- https://www.reddit.com/r/Blazor/comments/1qjagdx/a_public_facing_blazor_ssr_app_deep_dive/
- https://learn.microsoft.com/vi-vn/aspnet/core/blazor/?view=aspnetcore-8.0
- https://www.telerik.com/blogs/blazor-enhanced-navigation-fully-explained
- https://www.telerik.com/blogs/net-10-release-candidate-1-builds-early-promise