@inject NotificationManager Notifications @implements IDisposable @foreach (var message in Notifications.Messages) {
⚡ @message
} @code { protected override void OnInitialized() { Notifications.OnChange += StateHasChanged; } public void Dispose() { Notifications.OnChange -= StateHasChanged; } }