-
Notifications
You must be signed in to change notification settings - Fork 6
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
Any plans to make it Blazor Server-Side compatible? #2
Comments
@CoSJay |
Hi peter, do you have any solution, blazor server side web assembly. please let me know that will be great help. |
can't promise, I need to refresh local stack, tbu |
Please help me on blazor server. Error. Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: blazejewicz.Blazor.BeforeUnload.BeforeUnload Lifetime: Singleton ImplementationType: blazejewicz.Blazor.BeforeUnload.BeforeUnload': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'blazejewicz.Blazor.BeforeUnload.BeforeUnload'.) |
@jmarinl which version of .net you're on at the moment? (note, this one was never run properly on server-backed blazor version) |
Replacing |
Hi, has anyone found a solution? |
Bump |
Has anyone found a solution to using this in a blazor server? |
The new dotnet 7 updates regarding blazor implement wich implements 2 methods |
Starting from ASP .NET 7 you no longer needs to use an external library to do so. You could use the built-in event notifier and component:
More info at MS Docs |
This is exactly what I need (I have no idea why the Blazor folk didn't include it!), but as client-side Blazor isn't released yet we can't use it for production apps -- we're doing everything server-side. Any thought to making this SSB-friendly?
The text was updated successfully, but these errors were encountered: