Unverified Commit 1f5d3179 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Turbopack HMR: Reload when recovering from server-side errors (#63434)

Test Plan: `TURBOPACK=1 pnpm test-dev
test/development/basic/gssp-ssr-change-reloading/test/index.test.ts


Closes PACK-2767
parent a2e3b27d
......@@ -82,6 +82,11 @@ export function pageBootrap(assetPrefix: string) {
break
}
case HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ONLY_CHANGES: {
if (RuntimeErrorHandler.hadRuntimeError) {
console.warn(REACT_REFRESH_FULL_RELOAD_FROM_ERROR)
performFullReload(null)
}
const { pages } = payload
// Make sure to reload when the dev-overlay is showing for an
......
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