Optimize Collection page load with Task.WhenAll and fix BaseAddress SSR prerendering check in Users.razor
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 13s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 2m12s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 13s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 2m12s
This commit is contained in:
@@ -107,8 +107,14 @@ else if (DashboardState != null)
|
|||||||
IsLoading = true;
|
IsLoading = true;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
DashboardState = await ApiClient.GetCollectionStateAsync();
|
// Parallelize API calls to avoid sequential RTT bottlenecks
|
||||||
var runsResponse = await ApiClient.GetCollectionRunsAsync(10);
|
var stateTask = ApiClient.GetCollectionStateAsync();
|
||||||
|
var runsTask = ApiClient.GetCollectionRunsAsync(10);
|
||||||
|
|
||||||
|
await Task.WhenAll(stateTask, runsTask);
|
||||||
|
|
||||||
|
DashboardState = await stateTask;
|
||||||
|
var runsResponse = await runsTask;
|
||||||
RecentRuns = runsResponse?.Runs ?? new();
|
RecentRuns = runsResponse?.Runs ?? new();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
@@ -136,6 +136,10 @@
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (Http.BaseAddress == null)
|
||||||
|
{
|
||||||
|
Http.BaseAddress = new Uri("http://localhost:5265/");
|
||||||
|
}
|
||||||
var res = await Http.GetFromJsonAsync<List<UserDto>>("api/users");
|
var res = await Http.GetFromJsonAsync<List<UserDto>>("api/users");
|
||||||
if (res != null)
|
if (res != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user