using Microsoft.AspNetCore.Components; using System.Threading.Tasks; namespace LiMan.UI.Components { public partial class CmpPageTitle { [Parameter] public string CurrIcon { get; set; } = ""; [Parameter] public string CurrName { get; set; } = ""; protected override async Task OnParametersSetAsync() { isLoading = true; await Task.Delay(1); //await InvokeAsync(StateHasChanged); isLoading = false; //await InvokeAsync(StateHasChanged); } private bool isLoading { get; set; } = false; } }