Blazor.Diagrams icon indicating copy to clipboard operation
Blazor.Diagrams copied to clipboard

Application becomes unresponsive after page refresh

Open FugaziScript opened this issue 1 year ago • 1 comments

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

FugaziScript avatar Apr 15 '24 09:04 FugaziScript

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. image

FugaziScript avatar Apr 15 '24 10:04 FugaziScript