apexcharts / Blazor-ApexCharts

A blazor wrapper for ApexCharts.js
https://apexcharts.github.io/Blazor-ApexCharts
MIT License
788 stars 91 forks source link

Unhandled JSDisconnectedException #378

Closed haas-daniel closed 7 months ago

haas-daniel commented 8 months ago
Microsoft.JSInterop.JSDisconnectedException:JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed.
?, in ValueTask<TValue> JSRuntime.InvokeAsync<TValue>(long targetInstanceId, string identifier, CancellationToken cancellationToken, object[] args)
?, in async ValueTask<TValue> JSRuntime.InvokeAsync<TValue>(long targetInstanceId, string identifier, object[] args)
?, in async ValueTask JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, string identifier, params object[] args)
?, in async ValueTask ApexChart<TItem>.InvokeVoidJsAsync(string identifier, params object[] args)
?, in async void ApexChart<TItem>.Dispose()+(?) => { } [0]

JSDisconnectedExceptions should be catched. See also #253.

Version is 2.2.0.

joadan commented 7 months ago

Fixed in 2.3.0