-
Couldn't load subscription status.
- Fork 14
Description
Forgive me, I'm new. All the samples have @rendermode InteractiveServer, which I understand renders the DOM on the server then sends it to the browser. I'm trying to make a client-side web app with lower user-interaction-latency using @rendermode InteractiveWebAssembly but I'm getting errors which makes me wonder:
- Can this project be used with
@rendermode InteractiveWebAssembly? - Are there reasons to do (or not do) server-side rendering of this project?
- Is client-side rendering possible and I'm "doing it wrong"? Are there examples of that?
The error I get while loading the webpage: InvalidOperationException: Cannot provide a value for property 'JSRuntime' on type 'AzureMapsControl.Components.Map.AzureMap'. There is no registered service of type 'AzureMapsControl.Components.Runtime.IMapJsRuntime'.
I've got @inject IJSRuntime JSRuntime on the page and
app.MapRazorComponents<App>().AddInteractiveWebAssemblyRenderMode()
in program.cs.