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

JSDisconnectedException on Blazor Server #1499

Open
eharbitz opened this issue May 3, 2024 · 2 comments
Open

JSDisconnectedException on Blazor Server #1499

eharbitz opened this issue May 3, 2024 · 2 comments

Comments

@eharbitz
Copy link

eharbitz commented May 3, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
It is a bit hard to trigger the exception consistently. When navigating around on the page where there are Radzen charts this can happen as the component holding the Radzen chart is disposed. Also, when refreshing the page, the exception is sometimes thrown and shows up in for example Sentry. When removing the Radzen nuget package, we don't see this exception being thrown anymore.

Expected behavior
The exception should be caught in a try-catch as explained here: https://learn.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/?view=aspnetcore-8.0#javascript-interop-calls-without-a-circuit

@akorchev
Copy link
Collaborator

akorchev commented May 3, 2024

Hi @eharbitz,

We would gladly accept a pull request that implements the suggested change!

@eharbitz
Copy link
Author

eharbitz commented May 3, 2024

We have stopped using Radzen and that is when we noticed that these exceptions disappeared. So, just wanted to let you know about this issue.

Thanks for creating Radzen, we enjoyed using it, but we had to switch because we didn't get it to work that nicely with Blazor server: The charts caused a lot of signal r messages to be sent when hovering over the charts. So, we have switched to using a pure javascript chart library, and then we do the js interop ourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants