This code will help you to understand what to do if the name ‘JSRuntime.Current.InvokeAsync‘ does not exist in the current context.
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")
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
After Blazor 3.0.0-preview3, the Current was deprecated, and you have to use something like the following code example.
Before
After
need an explanation for this answer? contact us directly to get an explanation for this answer