Are query params supposed to persist after router.push
#643
-
Let's say I am on Currently, I am seeing this navigate me to Am I misunderstanding how this should work? If my understanding is correct, what might cause nuqs to persist query params across paths? If I am incorrect, could you recommend a way to clear the query parameters on this Thanks in advance! nuqs is great :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
So I am observing two steps here
Is this expected behavior and can it be disabled? |
Beta Was this translation helpful? Give feedback.
That's wild indeed. If you're able, could you give v2 a try? The whole sync thing has been removed there (it was only necessary for some unstable versions of Next.js' shallow routing).
Docs for migration (only hard requirement if you're not using deprecated things is to be on
next@>=14.1.2
):#459