Skip to content

Navigating from /a to /b in route /[route] reruns +page.ts but +page.svelte is unchanged #15918

Closed as not planned
@ianengelbrecht

Description

@ianengelbrecht

Describe the bug

If I have a route like /[slug], and I go to /a, the page load function picks up 'a' from params, does what it needs and passes the data down to +page.svelte as expected. Then if I then navigate from /a to /b, the page load function reruns, provides new data down to +page.svelte, but the ui does not update. I can't find anything in the docs to describe what to do to get the ui to update with the new data.

Reproduction

https://github.com/ianengelbrecht/sveltekit-pagenavs

Logs

NA

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i5-1345U
    Memory: 16.37 GB / 31.66 GB
  Binaries:
    Node: 22.13.1 - C:\nvm4w\nodejs\node.EXE
    npm: 10.9.2 - C:\nvm4w\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (129.0.2792.89)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    svelte: ^5.0.0 => 5.29.0

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