-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
BlazorPri3Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcblazor/subsvcdoc-enhancement
Description
Description
Not sure whether this is an issue or not, but in the code example below I noticed that a 'totalEmployees' variable is used, which I cannot gather from context where it comes from / where it gets its value:
private async ValueTask<ItemsProviderResult<Employee>> LoadEmployees(
ItemsProviderRequest request)
{
var numEmployees = Math.Min(request.Count, **totalEmployees** - request.StartIndex);
var employees = await EmployeesService.GetEmployeesAsync(request.StartIndex,
numEmployees, request.CancellationToken);
return new ItemsProviderResult<Employee>(employees, **totalEmployees**);
}
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/components/virtualization?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/components/virtualization.md
Document ID
26ed2425-63ec-e206-edcb-e51f17edb844
Article author
Metadata
Metadata
Assignees
Labels
BlazorPri3Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcblazor/subsvcdoc-enhancement
Type
Projects
Status
Done