Skip to content

Can AzureMapsControl.Components use RenderMode InteractiveWebAssembly #103

Description

@blackboxlogic

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions