Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] BlazoredToasts component declaration in a .NET 8 blazor web app with 'InteractiveWebAssembly' page. #262

Open
mip1983 opened this issue Sep 6, 2024 · 0 comments
Labels
Question Question about this project Triage Issue needs to be triaged

Comments

@mip1983
Copy link

mip1983 commented Sep 6, 2024

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?

@mip1983 mip1983 added Question Question about this project Triage Issue needs to be triaged labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Question about this project Triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant