Skip to content

Async: HMR Broken after navigate #17211

@agillispie

Description

@agillispie

Describe the bug

When you set the async and remote function experimental options to true the page content will cease to exist when you save a file if you have navigated elsewhere. This then requires you to manually refresh the page.

Reproduction

  1. Startup the example REPO in dev mode
  2. Add something to the home page markup and notice that HMR performs as expected.
  3. Navigate to the view users page and then navigate back to the home page.
  4. Add something to the homepage markup and save
  5. Witness content disappear.
  6. Go to the svelte config and disable everything regarding async/remote funcs
  7. Restart the dev server
  8. Add something to the home page, witness it work as expected.
  9. Navigate to the users page and then back to the home page
  10. Add something to the markup
  11. Witness content and HMR work as expected.

Logs

No logs are output

System Info

System:
    OS: macOS 26.2
    CPU: (10) arm64 Apple M4
    Memory: 2.50 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.13.1 - /Users/a/.nvm/versions/node/v22.13.1/bin/node
    npm: 11.2.0 - /Users/a/.nvm/versions/node/v22.13.1/bin/npm
    pnpm: 10.20.0 - /Users/a/.nvm/versions/node/v22.13.1/bin/pnpm
    bun: 1.2.21 - /Users/a/.bun/bin/bun
  Browsers:
    Chrome: 142.0.7444.162
    Safari: 26.2
  npmPackages:
    svelte: ^5.43.8 => 5.43.14 
    @sveltejs/kit: => 2.48.5

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions