Buttons four levels deep raise toasts in a host that sits somewhere else entirely, with no parameters or callbacks passed between them.
How it works
Try it: send a few notifications, hide the listeners, send more, then show them again.
NotifyButtonpublishesToastRequested(anIEvent) and updatesNotificationStats(anIState).ToastHostsubscribes with[Subscribe(Scope = ScopeKind.Root)], so it hears publishes from anywhere.EventHistoryonly counts events received while mounted. Events have no current value, so a late subscriber misses earlier ones.SentCounterreads state, so it always shows the full total, including notifications sent while it was hidden.- This page runs on Interactive Server, so the hub lives in the user's circuit. Another browser tab has its own circuit and its own hub.