Skip to content

Lost Access to params when using async derived on top level component with remote functions #17047

@KoroSensei10

Description

@KoroSensei10

Describe the bug

I have an error since updated svelte and sveltekit today,
When hovering links who will render components who depends on a top level async derived which depends on page params, we doesn't have acces to the params of the pages (see example provided)

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-ldnx8tyj?file=src%2Froutes%2F%2Bpage.svelte

note de .remote file and the page who depends on that behind a param

Logs

Uncaught (in promise) 
HttpError {status: 500, body: {…}}
body
: 
message
: 
"no param ?"
: 
Object
status
: 
500

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 20.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    svelte: ^5.39.5 => 5.42.2

Severity

blocking an upgrade

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