[Question] BlazoredToasts component declaration in a .NET 8 blazor web app with 'InteractiveWebAssembly' page.
Opened this issue · 0 comments
mip1983 commented
I've been through the process of setting up Blazored Toast on my .NET 8 Blazor Web app. My pages are largely Client 'InteractiveWebAssembly' pages, and I found the calls to the IToastService wheren't doing anything initialy, nothing shown.
I eventually ended up putting the component declaration in my App.Razor instead and put a render mode:
<BlazoredToasts @rendermode="InteractiveAuto"
Position="Blazored.Toast.Configuration.ToastPosition.TopRight"
Timeout="10"
RemoveToastsOnNavigation="true" />
That seems to get it working successfully, stops working if I remove @rendermode. Is this something that needs to be added to the README?