Skip to content

fix: prevent dev-mode reload loop on macOS#859

Merged
belnadris merged 1 commit intomainfrom
fix/electron-reloader-reload-loop
Feb 27, 2026
Merged

fix: prevent dev-mode reload loop on macOS#859
belnadris merged 1 commit intomainfrom
fix/electron-reloader-reload-loop

Conversation

@belnadris
Copy link
Owner

Fixes #840

Problem

electron-reloader defaults to watchRenderer: true, which watches renderer-process files in addition to the main process. On macOS, Angular's dev server writing files at startup triggers a reload loop.

Fix

Pass { watchRenderer: false } when calling the reloader. Angular's dev server already handles HMR for the renderer, so there is no loss of functionality.

Testing

  • npm run lint passes
  • npm run build passes
  • Manual test on macOS: npm start, confirm no reload loop after initial startup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 27, 2026 11:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Disables renderer-process watching in electron-reloader during --serve runs to prevent a macOS-specific reload loop triggered by Angular dev server file writes (fixes #840).

Changes:

  • Pass { watchRenderer: false } to electron-reloader in dev/serve mode.
  • Add inline comments documenting why renderer watching is disabled and linking to the reported issue.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@belnadris belnadris merged commit 499110a into main Feb 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple reload app

2 participants