Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation with retainSearchParams middleware not working #2830

Open
fernion opened this issue Nov 22, 2024 · 0 comments
Open

Navigation with retainSearchParams middleware not working #2830

fernion opened this issue Nov 22, 2024 · 0 comments

Comments

@fernion
Copy link

fernion commented Nov 22, 2024

Which project does this relate to?

Router

Describe the bug

Navigating when using a retainSearchParams middleware seems to be broken.
The URL for the link shows the search parameter but once we navigate, the search parameter is lost.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-retain-nok?file=src%2Froutes%2F__root.tsx

Steps to Reproduce the Bug or Issue

Navigate to the about route using the link. The rootValue search parameter is lost.

Expected behavior

rootValue search parameter should be preserved.

This behavior used to work. It was working on this example:
https://stackblitz.com/edit/tanstack-router-retain-ok?file=src%2Froutes%2F__root.tsx

If on the working version we delete the lock file and recreate it, it should stop working.

Screenshots or Videos

No response

Platform

  • OS: Linux
  • Browser: Chrome
  • Version: 130

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant