mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 23:50:08 +00:00
- Add nodeManager.cleanup() call in onUnmounted hook - Set nodeManager to null after cleanup to clear reference - Improve type safety by removing 'any' types and using proper interfaces - Fix LGraphCanvas type import and usage This ensures all event listeners and resources managed by useGraphNodeManager are properly cleaned up when the GraphCanvas component unmounts, preventing memory accumulation in long-running sessions.