From b34699a13909100dca66379269306d61214d8730 Mon Sep 17 00:00:00 2001 From: Vincent Baaij Date: Mon, 29 Sep 2025 14:09:51 +0200 Subject: [PATCH] Remove an invalid optimization. In case of Virtualize icw ItemsProvider, the rest of the code still needs to be executed otherwise InternalGridContext.Items will not get updated --- src/Core/Components/DataGrid/FluentDataGrid.razor.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Core/Components/DataGrid/FluentDataGrid.razor.cs b/src/Core/Components/DataGrid/FluentDataGrid.razor.cs index c4bed41682..4527b49fb0 100644 --- a/src/Core/Components/DataGrid/FluentDataGrid.razor.cs +++ b/src/Core/Components/DataGrid/FluentDataGrid.razor.cs @@ -752,9 +752,6 @@ private async Task RefreshDataCoreAsync() // (2) We won't know what slice of data to query for await _virtualizeComponent.RefreshDataAsync(); _pendingDataLoadCancellationTokenSource = null; - - StateHasChanged(); - return; } // If we're not using Virtualize, we build and execute a request against the items provider directly