Probably I do something very simple wrong but I try to follow the single instance per app example and if I debug my code I can see the cascading variable getting the instance.
I can send the following code without any error in the code or in the console of my browser
Notification.Instance.Show(new NotificationModel
{
Text = "TEST",
ThemeColor = ThemeConstants.Notification.ThemeColor.Error,
CloseAfter = 30000,
Closable = true
});
But I will not see the notification on screen.
It doesn't matter if this is somewhere in the code or in the
protected override async Task OnAfterRenderAsync(bool firstRender)
or
protected override void OnInitialized()