Use InvokeAsync for async state updates in BandGridBase

Replaced direct StateHasChanged() calls with InvokeAsync(StateHasChanged) to ensure asynchronous state updates. This helps prevent issues that can arise from synchronous state changes during component lifecycle events or event callbacks in Blazor.
This commit is contained in:
OlgunR
2026-04-20 12:59:27 +02:00
parent 7cc88c13f3
commit 177d418ac3

View File

@@ -157,7 +157,7 @@ public abstract class BandGridBase<TItem> : ComponentBase
.Select(c => c.FieldName)
.ToList();
}
StateHasChanged();
_ = InvokeAsync(StateHasChanged);
}
protected void UpdateBandOptions()