How does Enhanced Navigation in .NET 8 differ from traditional SPA routing?
Last updated
Enhanced navigation still renders the full page on the server per navigation and the client just diffs the HTML in. A SPA router mounts components locally and fetches only JSON data.
Enhanced navigation sends HTML fragments and keeps no persistent in-browser component state by default. A SPA downloads a JS bundle up front and holds rich client state in memory.
Both avoid full-page reloads and preserve the shell, so the app feels continuous.
- https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/navigation?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/routing?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-8.0?view=aspnetcore-10.0
- https://www.telerik.com/blogs/blazor-enhanced-navigation-fully-explained
- https://www.telerik.com/blogs/blazor-basics-exploring-blazor-enhanced-navigation
- https://blazor-university.com/routing/
- https://github.com/dotnet/aspnetcore/issues/54250