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 71ceda1 commit ed3c365Copy full SHA for ed3c365
src/Components/Components/src/OwningComponentBase.cs
@@ -86,7 +86,7 @@ async ValueTask IAsyncDisposable.DisposeAsync()
86
/// <returns>A task that represents the asynchronous dispose operation.</returns>
87
protected virtual async ValueTask DisposeAsyncCore()
88
{
89
- if (_scope.HasValue)
+ if (!IsDisposed && _scope.HasValue)
90
91
await _scope.Value.DisposeAsync().ConfigureAwait(false);
92
_scope = null;
0 commit comments