Skip to content

Page persists after navigating when using global transition #16555

@AbstractFruitFactory

Description

@AbstractFruitFactory

Describe the bug

reproduction:
https://www.sveltelab.dev/ir0u7dml3b168h6?files=.%2Fsrc%2Froutes%2Fsuccess%2F%2Bpage.svelte

  1. Click "go to page"
  2. Submit form
  3. The success message renders. Click "Go to target page".
  4. ERROR: The "No success state" from the previous page is rendered on the target page. It keeps persisting even after subsequent navigation to the home page.

This only happens if the transition is "global", and using the experimental async compiler option.

This started happening after I upgraded from svelte@5.26.3 -> svelte@5.37.3 and @sveltejs/kit@2.17.2 -> 2.27.0

Reproduction

https://www.sveltelab.dev/ir0u7dml3b168h6?files=.%2Fsrc%2Froutes%2Fsuccess%2F%2Bpage.svelte

Logs

System Info

System:
    OS: Linux 6.12 Pop!_OS 22.04 LTS
    CPU: (12) x64 AMD Ryzen 5 PRO 5650U with Radeon Graphics
    Memory: 503.65 MB / 14.46 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 22.17.1 - ~/.nvm/versions/node/v22.17.1/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v22.17.1/bin/npm
    pnpm: 10.13.1 - ~/.nvm/versions/node/v22.17.1/bin/pnpm
    bun: 1.1.38 - ~/.bun/bin/bun
  Browsers:
    Chrome: 138.0.7204.92
  npmPackages:
    svelte: ^5.37.3 => 5.37.3

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions