You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to dispose a razor component in blazor, I need to do some js side cleanups e.g. remove stored DotNetObjectReference from an array and remove some js event listeners.
The js runtime only supports async invoke methods.
One easy solution would be to support IAsyncDisposable in razor components and do the cleanup and disposal of the DotNetObjectReference as part of the async disposal.
The text was updated successfully, but these errors were encountered:
In order to dispose a razor component in blazor, I need to do some js side cleanups e.g. remove stored DotNetObjectReference from an array and remove some js event listeners.
The js runtime only supports async invoke methods.
One easy solution would be to support IAsyncDisposable in razor components and do the cleanup and disposal of the DotNetObjectReference as part of the async disposal.
The text was updated successfully, but these errors were encountered: