Skip to content

Commit

Permalink
fix: hmr error detection is flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Dec 17, 2018
1 parent 40e3ff2 commit 9d3a2c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hot.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const chargeFailbackTimer = id =>
logException({
toString: () => error,
})
}, 0)
// 100 ms more "code" tolerant that 0, and would catch error in any case
}, 100)

const clearFailbackTimer = timerId => clearTimeout(timerId)

Expand Down

0 comments on commit 9d3a2c0

Please sign in to comment.