Steps to reproduce:
- The issue can be reproduced on the DataGrid - Paging and Scrolling demo page.
- Navigate to that demo.
- Navigate to another page (e.g. "Overview).
- At this stage, there are already a lot of TaskCancelled exceptions.
- Return to the demo page.
- Press F5 several times - TaskCancelled exceptions are thrown again.
Call StackSystem.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at DevExpress.Blazor.Internal.Grid.DxDataGridHeadCell`1.<InitClientSide>b__24_2(DataGridColumnResizeMode mode, Boolean hasScrolling, ScrollBarMode horizontalScrollBarMode, Boolean hasPager, ISubject`1[] visibleIndex, ISubject`1[] groupIndex)
at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource`1 completion, SendOrPostCallback d, Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)
Important note:
These unhandled exceptions don't cause problems in the end-user UI, but they are displayed in monitoring applications.
I noticed that the number of exceptions is larger for demos with Paging enabled. For example, the DataGrid - HTML Decoration demo produces less TaskCancelled exceptions.