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 53b0980 commit 8dc4325Copy full SHA for 8dc4325
src/Components/Web/src/Routing/NavigationLock.cs
@@ -107,7 +107,14 @@ async ValueTask IAsyncDisposable.DisposeAsync()
107
108
if (_confirmExternalNavigation)
109
{
110
- await JSRuntime.InvokeVoidAsync(NavigationLockInterop.DisableNavigationPrompt, _id);
+ try
111
+ {
112
+ await JSRuntime.InvokeVoidAsync(NavigationLockInterop.DisableNavigationPrompt, _id);
113
+ }
114
+ catch (JSDisconnectedException)
115
116
+ // If the browser is gone, we don't need it to clean up any browser-side state
117
118
}
119
120
0 commit comments