Bugfix: docs-angular app freezes/crashes when loading root URL - Pag...
Documentation for Sessions
🐛 Bugfix: docs-angular app freezes/crashes when loading root URL - Pag...
Date: 2026-01-29
Time: 15:29:22 UTC
Session: editor2-73.25
Agent: angular
Confidence: 98%
Status: ✅ Documented
📋 Decision Context
Question:
docs-angular app freezes/crashes when loading root URL - Page Unresponsive
Task: Not specified
🎯 Decision Made
Chosen:
Fix AppComponent effect causing repeated showOverlay calls
Options Considered:
- Fix routing/lazy loading
- Fix DynamicPageComponent
- Fix AppComponent effect causing repeated showOverlay calls
- Fix LoadingOverlayService
💭 Reasoning
ROOT CAUSE: The AppComponent had an effect() that read currentMessage() from AppLoadingService. This signal updates every 2.5 seconds due to message cycling. Each time the effect ran, it called loadingService.showOverlay(). The LoadingOverlayService.show() method creates setInterval(50ms) if the initial loader is still active. Multiple intervals piled up, causing the browser to freeze. FIX: Added _overlayShown signal to track overlay state, only calling showOverlay() once when loading starts (when isLoading changes from false to true), not on every message change.
📁 Files Involved
- No files specified
🔗 Related
- Decision ID:
dev_1769700562440_mdq1lf6 - Session: 73
- Workspace: editor2
Auto-generated by MCP Smart Consolidation