Skip to content

Commit

Permalink
fix: invalidate hmr if not boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Sep 26, 2022
1 parent bcd210f commit a72611a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-react/src/fast-refresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ import(/* @vite-ignore */ import.meta.url).then(mod => {
import.meta.hot.accept();
if (isReactRefreshBoundary(mod)) {
${timeout}
} else {
import.meta.hot.invalidate();
}
})
`
Expand Down

0 comments on commit a72611a

Please sign in to comment.