Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Render Mode in MainLayout.razor Blazor 8?

$
0
0

I am using interactive server with per component/per page setting.

I am trying to use https://havit.blazor.eu/components/HxMessenger and it is telling me to put this code in the MainLayout

<HxMessenger Position="ToastContainerPosition.TopEnd" />

but nothing works and I suspect it is because there is no render mode set for the MainLayout but I don't know how to set it ever time I try to specify a render mode I crashes with

InvalidOperationException: Cann pass the paramter 'body' to componentmainlayout with rendermode InteractiveServerRenderMode'. This isbecause the paramater is of type RenderFragment which is arbitary codeand canot be searlized


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>