-
Following the instructions for setting up the HxMessenger here: https://havit.blazor.eu/components/HxMessenger, it simply doesn't work for me. I tried creating a new empty project using the default template and still nothing happens when calling Messenger.AddInformation() or any of the other Add* methods. I have found that if I move the HxMessenger component from the layout component to the page component I'm running the code on, it does work. But then the messages are lost/not shown when navigating between pages. Home.razor
MainLayout.razor
Am I doing something wrong, or is the HxMessenger and service not functional when using InteractiveServer rendermode? Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Where do you set the interactivity of your components? It seems you opted for "per page/component" which means your Use |
Beta Was this translation helpful? Give feedback.
Where do you set the interactivity of your components? It seems you opted for "per page/component" which means your
MainLayout.razor
is non-interactive (and non of the interactive components will work there without further setting).Use
<HxMessenger @rendermode="@InteractiveServer" ... />
when you use it in non-interactiveMainLayout.razor
.