constellation-analyzer/src
Jan-Henrik Bruhn 99ab514c0c fix: prevent cross-document state contamination in useActiveDocument
Added lastSyncedStateRef to track the graph state that was last loaded/synced
for each document. This prevents stale comparisons when switching between
documents by ensuring dirty checks only run against the correct document's
state.

Changes:
- Track last synced state (nodes, edges, nodeTypes, edgeTypes) per document
- Skip dirty check if graph state belongs to a different document
- Compare current graph state against last synced state instead of active document
- Update last synced state reference when loading or saving changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 16:50:26 +02:00
..
components fix: refactor keyboard shortcut context 2025-10-10 11:54:51 +02:00
contexts fix: refactor keyboard shortcut context 2025-10-10 11:54:51 +02:00
hooks fix: show keyboard shortcut help should be used with ctrl 2025-10-10 12:40:09 +02:00
stores fix: prevent cross-document state contamination in useActiveDocument 2025-10-10 16:50:26 +02:00
styles Initial commit 2025-10-10 11:15:51 +02:00
types Initial commit 2025-10-10 11:15:51 +02:00
utils Initial commit 2025-10-10 11:15:51 +02:00
App.tsx fix: logo path 2025-10-10 12:03:54 +02:00
main.tsx Initial commit 2025-10-10 11:15:51 +02:00
vite-env.d.ts Initial commit 2025-10-10 11:15:51 +02:00