From 3b24b1a3ff5062226b5884e75123f039647a546c Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Tue, 12 Oct 2021 07:44:41 -0500 Subject: [PATCH] Clarify object disposal for IJSObjectReference (#23516) --- .../javascript-interoperability/call-javascript-from-dotnet.md | 1 + 1 file changed, 1 insertion(+) diff --git a/aspnetcore/blazor/javascript-interoperability/call-javascript-from-dotnet.md b/aspnetcore/blazor/javascript-interoperability/call-javascript-from-dotnet.md index 48575972b5..03775c92bb 100644 --- a/aspnetcore/blazor/javascript-interoperability/call-javascript-from-dotnet.md +++ b/aspnetcore/blazor/javascript-interoperability/call-javascript-from-dotnet.md @@ -193,6 +193,7 @@ In the preceding example: * Specify the module's external JS file using its stable static web asset path: `./{SCRIPT PATH AND FILENAME (.js)}`, where: * The path segment for the current directory (`./`) is required in order to create the correct static asset path to the JS file. * The `{SCRIPT PATH AND FILENAME (.js)}` placeholder is the path and file name under `wwwroot`. +* Dispose the for [efficient garbage collection](xref:blazor/components/lifecycle#asynchronous-iasyncdisposable) in . Dynamically importing a module requires a network request, so it can only be achieved asynchronously by calling .