Dynamic pages and search params causing latency #73901
Unanswered
JohnMarsden24
asked this question in
App Router
Replies: 2 comments 3 replies
-
|
This is expected, as Nextjs app router is |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Also, forgot to mention, probably your usecase for filtering should be:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We utilise URL search params to manage some state in our app, for example if a search filter is applied. However we noticed a delay when updating the search params as it has to fetch a new RSC payload of the page. I created a minimal repo next-search-params-latency to see for yourselves. The component used to change the search params is taken straight from the Next docs.
I can understand why this is happening because the search params get passed to the
pageas a prop but is there any way to opt out of this? For example we're adding a multi-select filter which will push multiple params in quick succession and we're finding the latency is causing params to be missedBeta Was this translation helpful? Give feedback.
All reactions