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

Router breaks HMR with @preact/preset-vite #436

Open
JacobWennebro opened this issue Dec 23, 2022 · 0 comments
Open

Router breaks HMR with @preact/preset-vite #436

JacobWennebro opened this issue Dec 23, 2022 · 0 comments

Comments

@JacobWennebro
Copy link

I have found that using this package, it seemingly breaks Vite's HMR functionality for any components rendered inside of a route component.

This is quite problematic given that we often wrap our entire applications inside of the router. I have tested it and anything outside of the router updates perfectly fine with HMR.

"vite": "^4.0.0",
"@preact/preset-vite": "^2.4.0",
"preact-router": "^4.1.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant