havit / Havit.Blazor

Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
https://havit.blazor.eu
MIT License
475 stars 66 forks source link

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

Open jolaquai opened 5 months ago

jolaquai commented 5 months ago

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 commented 5 months ago

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

hakenr commented 4 months ago

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