Skip to content

Commit 44782d6

Browse files
Merge branch 'canary' into eliminate-unnecessary-decodes
2 parents 42a0cad + 1f5d317 commit 44782d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/next/src/client/page-bootstrap.ts

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ export function pageBootrap(assetPrefix: string) {
8282
break
8383
}
8484
case HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ONLY_CHANGES: {
85+
if (RuntimeErrorHandler.hadRuntimeError) {
86+
console.warn(REACT_REFRESH_FULL_RELOAD_FROM_ERROR)
87+
performFullReload(null)
88+
}
89+
8590
const { pages } = payload
8691

8792
// Make sure to reload when the dev-overlay is showing for an

0 commit comments

Comments
 (0)