diff --git a/AyCode.Blazor.Components/Services/AcSignalRDataSource.cs b/AyCode.Blazor.Components/Services/AcSignalRDataSource.cs index c4ada12..34125da 100644 --- a/AyCode.Blazor.Components/Services/AcSignalRDataSource.cs +++ b/AyCode.Blazor.Components/Services/AcSignalRDataSource.cs @@ -93,7 +93,7 @@ namespace AyCode.Blazor.Components.Services { private readonly object _syncRoot = new(); - protected readonly List InnerList = []; //TODO: Dictionary??? - J. + protected List InnerList = []; //TODO: Dictionary??? - J. protected readonly ChangeTracking TrackingItems = new(); protected readonly Guid[]? ContextIds; @@ -149,8 +149,10 @@ namespace AyCode.Blazor.Components.Services try { Clear(clearChangeTracking); - - InnerList.AddRange(fromSource); + + if (fromSource is List fromSourceCasted) InnerList = fromSourceCasted; + else InnerList.AddRange(fromSource); + //foreach (var item in fromSource) //{ // InnerList.Add(item);