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

HMR doesn't work for server data changes #13190

Open
enyo opened this issue Dec 16, 2024 · 1 comment
Open

HMR doesn't work for server data changes #13190

enyo opened this issue Dec 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@enyo
Copy link
Contributor

enyo commented Dec 16, 2024

Describe the bug

When making changes to server data (the data returned from the load function in +page.server.ts) HMR doesn't work: changes aren't reflected on the client (the client does not fetch the data object again).

Reproduction URL

https://www.sveltelab.dev/wftni3wiwdywe1a

Reproduction

Create a default SvelteKit project, upgrade all dependencies to their latest version, and make changes to a +page.server.ts file.

System Info

"@sveltejs/vite-plugin-svelte": "^5.0.0",
"vite": "^6.0.0"

The problem does not happen with vite-plugin-svelte ^4.0.0 and vite ^5.0.0.

@enyo enyo added the bug Something isn't working label Dec 16, 2024
@dominikg dominikg transferred this issue from sveltejs/vite-plugin-svelte Dec 18, 2024
@dominikg
Copy link
Member

moved to sveltekit repo as vite-plugin-svelte does not handle +page.server.ts files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants