Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hmr): trigger page reload when calling invalidate on root module #16636

Merged
merged 2 commits into from May 14, 2024

Conversation

ArnaudBarre
Copy link
Member

I discovered this while working on improving HMR support for React class component.

@ArnaudBarre ArnaudBarre added feat: hmr p2-edge-case Bug, but has workaround or limited in scope (priority) labels May 8, 2024
@ArnaudBarre ArnaudBarre self-assigned this May 8, 2024
Copy link

stackblitz bot commented May 8, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. Have a small suggestion below.

packages/vite/src/node/server/hmr.ts Outdated Show resolved Hide resolved
@patak-dev
Copy link
Member

/ecosystem-ci run

@vite-ecosystem-ci
Copy link

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
@bluwy bluwy merged commit 2b61cc3 into main May 14, 2024
11 checks passed
@bluwy bluwy deleted the arnaud/invalidate-root branch May 14, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: hmr p2-edge-case Bug, but has workaround or limited in scope (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants