docs icon indicating copy to clipboard operation
docs copied to clipboard

🐛(frontend) Interlinking memory leak

Open AntoLC opened this issue 1 month ago • 1 comments

Purpose

When investigating about a memory leak during collaboration we found a problem with the interlinking that could cause a memory leak. When doing collaborative editing, doc?.title might be out of sync for other users when updated by another user. This can cause a useEffect to run repeatedly, causing an infinite loop of updates. We now trigger the effect only when doc?.title changes, not when the customInlineContent changes.

Proposal

  • [x] ⚡️(frontend) improve unsubscribe logic when unmounting components
  • [x] 🐛(frontend) fix memory leak in Interlinking
  • [x] 🥅(frontend) improve error handling during upload

AntoLC avatar Nov 05 '25 10:11 AntoLC