Skip to content

Commit 9d3a2c0

Browse files
committed
fix: hmr error detection is flaky
1 parent 40e3ff2 commit 9d3a2c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/hot.dev.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ const chargeFailbackTimer = id =>
2323
logException({
2424
toString: () => error,
2525
})
26-
}, 0)
26+
// 100 ms more "code" tolerant that 0, and would catch error in any case
27+
}, 100)
2728

2829
const clearFailbackTimer = timerId => clearTimeout(timerId)
2930

0 commit comments

Comments
 (0)