Unverified Commit 29038fc5 authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

Fix race with hot-reloader-client clearing overlay errors (#71771)

This `resolvePendingHotUpdate` in the `SERVER_COMPONENT_CHANGES` event
seems to be causing a race where an error would come through in a fast
refresh response and then the overlay would be cleared.

I'm not really sure why we were resolving a pending hot update here
because we already call it on `handleSuccessfulHotUpdateWebpack` and
`tryApplyUpdate` but I'm consistently seeing correct behavior without
this.
parent 38c3e832
......@@ -471,7 +471,6 @@ function processMessage(
reloading = true
return window.location.reload()
}
resolvePendingHotUpdateWebpack()
startTransition(() => {
router.hmrRefresh()
dispatcher.onRefresh()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment