Refactor: How should dock-layout handle persistence?
Documentation for Sessions
♻️ Refactor: How should dock-layout handle persistence?
📋 Decision Context
Question:
How should dock-layout handle persistence?
Task: Session 38.3: Fix dock-layout persistence
🎯 Decision Made
Chosen:
Migrated from localStorage to autoFlashState from @storage-system
Options Considered:
- No alternatives documented
💭 Reasoning
The original implementation used raw localStorage which: 1) Breaks platform conventions, 2) Loses cross-tab sync, 3) Loses instant load capability (< 1ms), 4) Missing TTL management. autoFlashState provides all these benefits automatically.
📁 Files Involved
libs/libs-ui/dock-layout/src/lib/services/dock-state.service.ts
🔗 Related
- Decision ID:
dev_1768079130056_x0lug1s - Session: 38
- Workspace: editor2
Auto-generated by MCP Smart Consolidation