I have a Blazor server-side app. It has a common header for all pages. Inside the header's OnInitialized, it checks whether the user has any new messages. If so, it will blink an icon. This code of course will be executed once when the site loads. However, for each subsequent navigation to different pages, it won't execute again.
Is there a way to re-execute this every time a user navigate to whatever page? I understand I could also use a timer in the background to do this, but wondering if it's doable simply by page navigations?
Thanks!