sveltekit-layout-routing-bug Svelte Themes

Sveltekit Layout Routing Bug

SvelteKit preload bug reproduction

This project mirrors the navigation pattern that currently hangs when data-sveltekit-preload-data="hover" is enabled.

Setup

bun install

Run

bun run dev -- --host 127.0.0.1 --port 5175

Open http://127.0.0.1:5175/b and click through:

  1. /b
  2. /b/c
  3. Click Home in the /b layout nav to /
  4. Click Page /a on the home page

If navigation hangs after leaving /b routes (URL changes to /a but the home content stays rendered), it reproduces the issue.

Notes

  • Preloading is enabled via data-sveltekit-preload-data="hover" in src/app.html.
  • If you change the preload attribute to off, the hang disappears.
  • If you remove the root layout (i.e., delete src/routes/+layout.svelte), the hang disappears.
  • If you remove the layout from /routes/b (i.e., delete src/routes/b/+layout.svelte), the hang disappears.

Top categories

Loading Svelte Themes