@inject State State
Status.lol
Some.pics
Eph.emer.al
@if (FeatureFlags.Following && State.IsAuthorized) {
Timeline
Now.garden
}
else {
Now.garden
}
Directory
@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.AccountInfo)) await InvokeAsync(StateHasChanged);
}
public void Dispose() {
State.PropertyChanged -= StateChanged;
}
}