-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the bug
In some cases clicking a link updates the browser's URL, however the page and the components do not change. This appears to be something related to nested layouts.
Everything starts working correctly if I remove the data-sveltekit-preload-data="hover" attribute on the body tag.
I'm wondering if there's something happening to navigation state here where SvelteKit thinks it's navigated and it actually hasn't. I don't know if this has already been tracked in another issue
Reproduction
An example repository is available here: https://github.com/gordysc/svelte-navigation-bug-example
If I remove data-sveltekit-preload-data="hover" from the body tag everything works.
Logs
System Info
System:
OS: macOS 26.1
CPU: (16) arm64 Apple M3 Max
Memory: 18.91 GB / 128.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.11.1 - /Users/luke/.n/bin/node
Yarn: 1.22.22 - /Users/luke/.npm-global/bin/yarn
npm: 11.6.2 - /Users/luke/.n/bin/npm
pnpm: 10.6.4 - /Users/luke/Library/pnpm/pnpm
bun: 1.3.3 - /Users/luke/.npm-global/bin/bun
npmPackages:
@sveltejs/adapter-auto: ^7.0.0 => 7.0.0
@sveltejs/adapter-node: ^5.4.0 => 5.4.0
@sveltejs/kit: ^2.48.5 => 2.49.0
@sveltejs/vite-plugin-svelte: ^6.2.1 => 6.2.1
svelte: ^5.43.8 => 5.44.0
vite: ^7.2.2 => 7.2.4Severity
Serious, but I can work around it
Additional Information
We definitely want to keep the preload attribute but if we have to move off it for now so the correct behavior works that's okay (although not ideal). If we hav to move off of remote functions that's also unfortunate, but managable.