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

useHMR throws in SSR when when dev-server hot reloading is enabled #133

Open
MaxArtemov opened this issue Jul 24, 2023 · 0 comments
Open

Comments

@MaxArtemov
Copy link
Contributor

image

const win = window as any;

In this line, window might be changed to globalThis to support hot reloading in ssr, or add a condition typeof window !== undefined to keep it only hmr'ble on client

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