Open blackboxlogic opened 1 month ago
I found an answer to my primary question: here's an example of someone doing client-side rendering of the map component. Secondary question stands: is there some reason not to (other than longer initial load time)?
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:@rendermode InteractiveWebAssembly
?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 andapp.MapRazorComponents<App>().AddInteractiveWebAssemblyRenderMode()
in program.cs.