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
{{ message }}
Repository navigation
Fix subscription cleanup leak in ReactiveNodeService #640
The _unsubscribe function is returned but never stored or called. When a viewer unmounts, the subscription remains active.
Impact
Memory leak: 1 subscription per mounted viewer accumulates
Example: Open/close same pane 100 times = 100 active subscriptions
All those subscriptions continue receiving callbacks, causing unnecessary processing
Acceptance Criteria
Store the unsubscribe function returned by subscribeAll()
Call unsubscribe when ReactiveNodeService is destroyed (onDestroy or cleanup function)
Add test verifying subscription is cleaned up on unmount
Verify no memory leak after repeated mount/unmount cycles
Recommended Solution
// In onMount or effect:constunsubscribe=sharedNodeStore.subscribeAll((nodeId,node)=>{// ...});// In onDestroy or return cleanup function:return()=>unsubscribe();
Priority
HIGH - Memory leak affects application stability over extended usage
Activity
Add follow-up issue links to multi-tab investigation doc
Investigate multi-tab/pane reactivity with LIVE SELECT updates (#637)
Fix subscription cleanup leak in ReactiveNodeService (closes #640)
Investigate multi-tab/pane reactivity with LIVE SELECT updates (#637)
Fix subscription cleanup leak in ReactiveNodeService (#645)
Investigate multi-tab/pane reactivity with LIVE SELECT updates (#637)
Fix subscription cleanup leak in ReactiveNodeService (#645)
Fix subscription cleanup leak in ReactiveNodeService (#645)