@page "/pics"

Some.pics

Sit back, relax, and look at some.pics

@code { private List pics; private async ValueTask> GetPics(ItemsProviderRequest request) { // TODO: request.cancellationToken RestService api = new RestService(); if(pics == null || pics.Count == 0) pics = await api.SomePics(); var numPics = Math.Min(request.Count, pics.Count - request.StartIndex); return new ItemsProviderResult(pics.Skip(request.StartIndex).Take(numPics), pics.Count); } }