I would assume this is referring to client or server, but with these as the options I can't quite figure this.
What does 'interactivity location' mean when creating a Blazor App from a template?
2.3k Views Asked by hamstar At
2
There are 2 best solutions below
3

This refers to the new features added to Blazor in .NET 8
You can have your app be globally interactive (Blazor Server or WASM or both) or mixed (some components are static SSR and some interactive)
Lots of choice, but when you don't understand what they mean??????
The difference is where the render mode is set for the SPA.
When you select Global, the render mode is set in
App.razor
on the two components. This overrides any "lower" settings in child components.The example below sets it to
InterActiveServer
.When you select
Page/Component
,App
looks likes this. No render modes defines so Server Side Rendered is default unless set specifically at the page or component level.Add this simple component to your solution and add it to any page. It will tell you what render state is being used for that page. It will also change state as the component switches from pre-rendered to fully interactive.
RenderContextState.razor
For instance:
All the WebAssembly modes on the
Blazor Web App
template are AspNetCore Hosted. The template deploys a Server and Client project.If you want standalone WASM use the
Blazor WebAssembly Standalone App
template.I'm in the middle of writing an article on this very [confusing] subject. I'll add a reference to this answer when it's complete.