-
Notifications
You must be signed in to change notification settings - Fork 1
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
Layout slot is not updating after updating Svelte to 3.24.1 #8
Comments
confirmed. not working with svelte ^3.24.0. had to downgrade to ~3.23.2 to make it works again. |
It looks like this might have already been fixed in rixo/svelte-hmr#18, but svelte-loader-hot doesn't seem to be compatible with the later versions of svelte-hmr. |
Thanks for the feedback. Indeed, there was an incompatibility with Svelte 3.24.1 that was fixed in latest I have just released the required changes as Unfortunately, that wouldn't explain @nipinium's problem since, as far as I know, svelte@3.24.0 was not affected by the problem fixed by last version of To be totally frank, I don't really get what's the issue here... Given we're talking about layouts & slots, I've tried my luck with sapper-template-hot#webpack example, with latest Svelte (3.24.1 indeed), but I don't seem to be able to reproduce the problem mentioned here, neither with current version of Maybe some (all?) of you are talking about Routify? Can anyone share a complete example illustrating this problem? |
Just tested and can confirm the update fixes the issue for me. Thanks @rixo! In my case I wasn't using slots (or Routify), there were just some parts of reactivity not updating properly in a relatively small component hierarchy. I've managed to reproduce the issue as minimally as I can: svelte-loader-hot-repro-8 I assume @nipinium was indeed using 3.24.1, he was just using the |
Good to hear, thanks for the feedback @slightlyfaulty. I've published the new version as a patch release (v0.3.1), so people can get support for Svelte 3.24.1 without having to think about it (big thanks to @dominikg for the actual fix in I have personally stopped using Webpack for Svelte projects, so the development of Cheers guys! |
Thank you for the quick patch @rixo! I will go ahead and close this issue. I'm not familiar at all with the inner workings of Svelte, but, like you, I couldn't find anything that would have caused an issue. |
thanks for the quick fix, @rixo. |
With
hotReload: true
, the layout slot will not update when navigating to a different route. There is no problem with HMR when Svelte v3.24.0 is installed.The text was updated successfully, but these errors were encountered: