Skip to content

Params are not reactive when { showDefaults: false } is set and during standard link navigationΒ #170

@Jahoda

Description

@Jahoda

Describe the bug

When I use { showDefaults: false }, arrive at a URL without search parameters, and then navigate using a standard HTML link (e.g., <a href="?pageNum=2">2</a>), the value in params.pageNum is not updated.

  • When the search parameter is preset on page load, it works.
  • When the search parameters are changed by updating params.pageNum, it works.

Version: 4.0.0-next.0

Thank you for your help.

Reproduction

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

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions