Blazor.Diagrams
Blazor.Diagrams copied to clipboard
Application becomes unresponsive after page refresh
I'm having problems with performance. After the page is refreshed or closed, the exceptions are generated and application is unresponsive. I added more nodes to show the problem. How can it be resolved?
https://github.com/Blazor-Diagrams/Blazor.Diagrams/assets/82718856/3904fa67-86a6-47df-b207-8123f818c232
ok, I found what caused this problem.
In NodeRenderer.cs there is JsRuntime.UnobserveResizes(_element); in the Dispose() method. After commenting it the problem disappeared.