Skip to content

Commit f6133a2

Browse files
committed
Don't reload on declined on first load
1 parent c0233a2 commit f6133a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/sandbox/eval/transpiled-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ export default class TranspiledModule {
791791
if (manager.webpackHMR) {
792792
if (!this.compilation) {
793793
const shouldReloadPage = this.hmrConfig
794-
? this.hmrConfig.isDeclined(this.isEntry)
794+
? this.hmrConfig.isDeclined(this.isEntry) && !manager.isFirstLoad
795795
: this.isEntry && !this.isTestFile;
796796

797797
if (shouldReloadPage) {

0 commit comments

Comments
 (0)