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:

  1. Fix routing/lazy loading
  2. Fix DynamicPageComponent
  3. Fix AppComponent effect causing repeated showOverlay calls
  4. 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


🔗 Related


Auto-generated by MCP Smart Consolidation