We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ca1eb commit 6bc0978Copy full SHA for 6bc0978
src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/ExampleJsInterop.cs
@@ -17,8 +17,8 @@ public class ExampleJsInterop : IAsyncDisposable
17
18
public ExampleJsInterop(IJSRuntime jsRuntime)
19
{
20
- moduleTask = new (async () => await jsRuntime.InvokeAsync<IJSObjectReference>(
21
- "import", "./_content/Company.RazorClassLibrary1/exampleJsInterop.js"));
+ moduleTask = new (() => jsRuntime.InvokeAsync<IJSObjectReference>(
+ "import", "./_content/Company.RazorClassLibrary1/exampleJsInterop.js").AsTask());
22
}
23
24
public async ValueTask<string> Prompt(string message)
0 commit comments