@inject State State @code { protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); State.PropertyChanged += StateChanged; } private async void StateChanged(object? sender, PropertyChangedEventArgs e) { if (e.PropertyName == nameof(State.IsRefreshing)) { await InvokeAsync(StateHasChanged); } } }