@page "/gallery" @layout Shared.MainLayout @using Wabbajack.Networking.WabbajackClientApi; @using Wabbajack.DTOs @inject Client _client
@foreach (ModlistMetadata item in _listItems) { }
@code { List _listItems = new(); protected override async Task OnAfterRenderAsync(bool firstRender) { if (!firstRender) return base.OnAfterRenderAsync(firstRender); try { ModlistMetadata[] modLists = await _client.LoadLists(); _listItems = modLists.ToList(); StateHasChanged(); } catch (Exception ex) { Console.WriteLine(ex); } return base.OnAfterRenderAsync(firstRender); } }