shaigem / BlazorPanzoom

Blazor wrapper for timmywil's panzoom library that helps make zooming and panning of Blazor components and elements easier
https://shaigem.github.io/BlazorPanzoom/
MIT License
44 stars 12 forks source link

JSDisconnectedException #18

Open testnamepleaseigonre opened 1 year ago

testnamepleaseigonre commented 1 year ago

There is an exception which occurs every time while trying to reload the page by clicking that reload button on top/left. fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111] Unhandled exception in circuit 'u42n-m_RIMIbLyyQSEAmBa11LV6Tp41ooTiIya4Zmwc'. Microsoft.JSInterop.JSDisconnectedException: JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed. at Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime.BeginInvokeJS(Int64 asyncHandle, String identifier, String argsJson, JSCallResultType resultType, Int64 targetInstanceId) at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, CancellationToken cancellationToken, Object[] args) at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args) at BlazorPanzoom.PanzoomInterop.DestroyAsync() at BlazorPanzoom.PanzoomInterop.DisposeAsync() at BlazorPanzoom.Panzoom.DisposeAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.<>c__DisplayClass69_0.<g__HandleAsyncExceptions|1>d.MoveNext()

Possible fix, the same issue (from other sources) image

https://github.com/Blazored/Modal/pull/463/files