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

[HxTooltip?] Disposing JS module in DisposeAsync causes JSException #786

Open
jolaquai opened this issue Apr 5, 2024 · 2 comments
Open

Comments

@jolaquai
Copy link

jolaquai commented Apr 5, 2024

image

Can confirm that this is because of the InvokeVoidAsync call inside a DisposeAsync (the exception itself is thrown when reloading the page). If I attempt to use the module for an InvokeVoidAsync call before disposing it inside the component's DisposeAsync, I get:
image

Browser console essentially reports the same thing:
image

It's very possible I'm doing something very wrong to cause this, but I'm really not well-versed enough in Blazor to even make guesses as to what's going on.

@hakenr
Copy link
Member

hakenr commented Apr 9, 2024

@KliqxTV Could you please provide us with minimal reproduction steps, or even better, a repository demonstrating the issue?

@hakenr
Copy link
Member

hakenr commented Apr 18, 2024

(Moving the disposal logic to "mutation observers" will probably resolve such issues.)

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

No branches or pull requests

2 participants