mirror of
https://github.com/OFFIS-ESC/constellation-analyzer
synced 2026-01-27 07:43:41 +00:00
Fixes an issue where nodes from a previous document would persist when creating a new document after closing all documents. The problem occurred because: 1. When all documents were closed (activeDocumentId becomes null), the graph store wasn't being cleared 2. When a new document was created, stale data from the old document could contaminate the new document through race conditions Changes: - Clear nodes and edges from graph store when activeDocumentId is null - Add safeguard to prevent saving stale graph data to newly created documents before they've been fully loaded - Maintain proper state tracking to prevent cross-document contamination 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migration.ts | ||
| persistence.ts | ||
| types.ts | ||
| useActiveDocument.ts | ||
| workspaceIO.ts | ||