Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
1.01k stars 205 forks source link

Application becomes unresponsive after page refresh #432

Open FugaziScript opened 6 months ago

FugaziScript commented 6 months ago

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

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