-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
[Bug]: Svelte HMR Breaks when using Houdini #24231
Comments
@JReinhold any suggestions? |
I don't know why this happens. I took a look at the Houdini source code but didn't find anything meaningful. @IanVS are we doing anything special with HMR in Vite that could get disabled by certain Vite plugins, or similar? |
@AlecAivazis @jycouet do you might have some inputs on this? |
The only thing we do is strip hmr boundaries from stories themselves: code/builders/builder-vite/src/plugins/strip-story-hmr-boundaries.ts. With recent versions of Vite, we could remove this because the underlying bug was fixed, but in those cases there should be no hmr boundaries so the plugin just has no effect. My only other guess is that Houdini is relying on the filesystem being structured a certain way, whereas storybook creates a virtual entrypoint file and serves that in the preview. But that's a pretty uneducated guess. |
Sorry for lagging on the response here! There is an equivalent issue on the houdini repo that I am going to try to take on soon (HoudiniGraphql/houdini#1116 ). I'll report back here if I run into anything or need any guidance. We have to do some hacky things to bend sveltekit's router to do what we want and its possible its causing some issues. I wouldn't be offended if we just called this a houdini problem for now 😅 |
Whoops, really sorry for not searching the houdini's issue repo! I just looked up the discord channel and thought this wasnt reported, my bad. |
Describe the bug
If i use https://houdinigraphql.com/, it involves setting upa houdini() plugin in the vite.config.ts, if that is enabled, HMR does not work. So currently i'm avoiding it this way
To Reproduce
Here is a minimum reproduction of the issue
https://github.com/rohanrajpal/houdini-storybook-hmr-bug-repro
Also conversation with the creator of houdini is going on at :
https://discord.com/channels/1024421016405016718/1152214264547905556
His initial reply
i commented watchSchema and confirm that its not related to polling, my bad
System
Additional context
No response
The text was updated successfully, but these errors were encountered: