Steps to reproduce:
- Open the attached WASM application.
- Navigate to the Counter page.
- Before the chart is loaded, navigate to another page.
Expected results:
No exception is thrown.
Current results:
The following exception is thrown:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: The CancellationTokenSource has been disposed.
System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowIfDisposed()
at System.Threading.CancellationTokenSource.get_Token()
at DevExpress.Blazor.ClientComponents.Internal.ClientComponentJSInterop.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Additional information:
The attached sample project and video illustrate the issue.