Attempt to speed up loading of dashboard

Ref #29
media
Pat Hartl 2023-09-17 17:01:17 -05:00
parent b32451d216
commit f94e5f63a8
1 changed files with 17 additions and 14 deletions

View File

@ -30,7 +30,9 @@
ColorField = "type",
};
protected override async Task OnInitializedAsync()
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
var settings = SettingService.GetSettings();
var drives = DriveInfo.GetDrives();
@ -68,3 +70,4 @@
StateHasChanged();
}
}
}