You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0acfb4a
Browse filesBrowse the repository at this point in the historyBrowse files
fix: prevent redundant restarts on rapid changes and recover from app crashes in watch mode (#6036)
Two issues in the livesync watch loop:
1. Multiple rapid file changes caused each webpack recompilation to trigger a
separate sync+restart, even when earlier restarts were already stale. Added
exhaustMapWithTrailing semantics: while a sync is in progress, incoming
compilation events are coalesced per-platform into a single pending event
that runs after the current sync completes.
2. If the app crashed at certain times (e.g. during JS startup), the error
handler removed the device from the descriptor list and stopped watchers,
permanently killing the watch loop. Fixed by no longer calling stop() on
transient sync errors — the device stays in the list and retries on the
next file change. Also added .catch() to the promise action chain so a
rejected action no longer breaks all subsequent chained actions.
0 commit comments