Will Blazor United let me do this? #49027
-
I just want to find out whether I've understood Blazor United right... Will I be able to build a web app that:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think the answer is yes, though I'd be interested to clarify your exact requirements more. The things you're describing were largely already achievable in .NET 7 and earlier. That is, a Blazor WebAssembly hosted app could be prerendered on the server, and then:
What's better for your specific situation with .NET 8 is:
Obviously there are many other enhancements too in .NET 8, but these are the ones I think directly relate to the scenario you described. Does that make sense? I'm hoping it will be clear that most of what you're asking was technically already possible in .NET 7 (i.e., a prerendered wasm site) and so the most relevant thing to distinguish is what you're looking for that wasn't already supported in .NET 7.
Only one ingredient is supported in .NET 8, but if there's sufficient demand we will consider supporting arbitrarily many (at least up to |
Beta Was this translation helpful? Give feedback.
I think the answer is yes, though I'd be interested to clarify your exact requirements more.
The things you're describing were largely already achievable in .NET 7 and earlier. That is, a Blazor WebAssembly hosted app could be prerendered on the server, and then:
.js
file to be loaded (or any circuit/wasm runtime)blazor.webassembly.js
, it would download the runtime in the background and then start up interactive WebAssembly-based behaviors once the runtime was downloaded, seamlessly turning on SPA-like behaviors such as intercepting navigation to perform it on the clientWhat's better for your…