You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a textarea with larger content present, so it has a scrollbar, the performance of Rete js greatly suffers, the app becomes unresponsive and in some cases crashes with out of memory error.
the page crashes regardless of the initialization of the editor: sometimes during the initialization of the editor, sometimes a few seconds after it has been initialized
the crash does not happen with a textarea with long text doesn't have scroll (overflow: 'hidden' or large height)
I assume that Safari can't handle a large number of event listeners under certain circumstances, but it's not clear why (Safari's devtools don't give any clues)
Chrome DevTools does not show any anomalies. 90k event listeners is a lot, but not critical
Describe the bug
When there is a textarea with larger content present, so it has a scrollbar, the performance of Rete js greatly suffers, the app becomes unresponsive and in some cases crashes with out of memory error.
Example: https://codesandbox.io/p/sandbox/rete-js-v2-performance-forked-6w67jt
Recording of the issue (with lambdatest): https://github.com/user-attachments/assets/f572f5a3-263e-4e0e-ae7f-7f5cad4dffe5
The issue was also observed on a physical device.
Example to reproduce
https://codesandbox.io/p/sandbox/rete-js-v2-performance-forked-6w67jt
How to reproduce
In Safari the performance becomes vary bad, other browsers are not affected on the same device.
Expected behavior
Dependencies
https://codesandbox.io/p/sandbox/rete-js-v2-performance-forked-6w67jt
Platform
Safari 17 (MacOS Sonoma)
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: