Skip to content

Commit

Permalink
feat(blazorui): improve Preload parameter implementation in BitInfini…
Browse files Browse the repository at this point in the history
…teScrolling #9778 (#9779)
  • Loading branch information
msynk authored Feb 2, 2025
1 parent 67f3767 commit 47ac14f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ protected override async Task OnInitializedAsync()
{
if (Preload && ItemsProvider is not null)
{
_currentItems.AddRange(await ItemsProvider(new(0, CancellationToken.None)));
var items = await ItemsProvider(new(0, CancellationToken.None));
_currentItems.AddRange(items);
}

await base.OnInitializedAsync();
Expand Down

0 comments on commit 47ac14f

Please sign in to comment.