@page "/statuslog/latest" @inject State State

Statuslog

The latest posts from everyone at status.lol

@code { private List statuses; private string statusContent = string.Empty; private string? statusEmoji = null; protected override async Task OnInitializedAsync() { } private async ValueTask> GetStatuses(ItemsProviderRequest request) { // TODO: request.cancellationToken statuses = (await State.GetStatuses()) ?? new List(); var numStatuses = Math.Min(request.Count, statuses.Count - request.StartIndex); return new ItemsProviderResult(statuses.Skip(request.StartIndex).Take(numStatuses), statuses.Count); } }