Skip to content

Commit

Permalink
fix: always call hot.accept
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Sep 25, 2022
1 parent 9e39fdc commit a94c657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-react/src/fast-refresh.ts
Expand Up @@ -101,8 +101,8 @@ function isReactRefreshBoundary(mod) {
}
import(/* @vite-ignore */ import.meta.url).then(mod => {
import.meta.hot.accept();
if (isReactRefreshBoundary(mod)) {
import.meta.hot.accept();
${timeout}
} else {
import.meta.hot.invalidate();
Expand Down

0 comments on commit a94c657

Please sign in to comment.