editor.load() cause memory leak! #6615
Unanswered
YousofSayed
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
editor.load()causes memory leakI'm using GrapesJS with
@grapesjs/react.When I call
editor.load()multiple times, I notice a continuous increase in DOM nodes and memory usage in the browser's Performance Monitor.editor.destroy(), the memory does not decrease, which strongly suggests a memory leak.Steps to Reproduce
@grapesjs/react.editor.load()repeatedly while keeping the Performance Monitor open.editor.destroy()and check memory usage — it stays the same.Expected Behavior
editor.load()should not accumulate detached DOM nodes or event listeners.Actual Behavior
editor.load()call.Environment
Notes
This issue makes it very difficult to use GrapesJS in a production React app because memory usage keeps increasing, eventually causing performance degradation or crashes.
Beta Was this translation helpful? Give feedback.
All reactions