Q:

What do I do if the name ‘JSRuntime.Current.InvokeAsync‘ does not exist in the current context?

0

This code will help you to understand What do I do if the name ‘JSRuntime.Current.InvokeAsync‘ does not exist in the current context.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

After Blazor 3.0.0-preview3, the Current was deprecated, and you have to use something like the following code example.

Before

await JSRuntime.Current.InvokeAsync<string>("methods.print", "here is the message")

After

await JSRuntime.InvokeAsync<string>("methods.print", "here is the message")

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now