Search (query) parameters disable client-side router cache #80042
Labels
Linking and Navigating
Related to Next.js linking (e.g., <Link>) and navigation.
Loading UI and Streaming
Related to loading UI (loading.tsx) and streaming.
Uh oh!
There was an error while loading. Please reload this page.
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/pedantic-frog-l2mvhn
To Reproduce
Current vs. Expected behavior
Current: Pages with search parameters are not stored in the client-side router cache - loading indicator is shown every time. Note: back/forward navigation works correctly (no loading indicator).
Expected: Pages with search parameters are stored in the client-side router cache - loading indicator is shown only on the first load.
OR the documentation (https://nextjs.org/docs/app/deep-dive/caching#client-side-router-cache) should be updated to mention that search (query) parameters disable client-side router cache (why?).
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP PREEMPT_DYNAMIC Sun Aug 6 20:05:33 UTC 2023 Available memory (MB): 4102 Available CPU cores: 2 Binaries: Node: 20.9.0 npm: 9.8.1 Yarn: 1.22.19 pnpm: 8.10.2 Relevant Packages: next: 15.4.0-canary.61 // Latest available version is detected (15.4.0-canary.61). eslint-config-next: N/A react: 19.1.0 react-dom: 19.1.0 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Linking and Navigating, Loading UI and Streaming
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: