Blazor-Diagrams / Blazor.Diagrams

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

Application becomes unresponsive after page refresh #432

Open FugaziScript opened 2 months ago

FugaziScript commented 2 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 2 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