App router on PPR stop responding after navigate to path with query #69437
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
locked
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
Partial Prerendering (PPR)
Related to Partial Prerendering.
Link to the code that reproduces this issue
https://github.com/zamarawka/reproduction-app-router-bug
To Reproduce
npm run build
npm run start
localhost:3000/blog
/?tab=other
)Link
s don't do anything) and router stop responding on any requestsCurrent vs. Expected behavior
I expect navigation work, pages changes, router responds to
Link
clicksProvide environment information
Which area(s) are affected? (Select all that apply)
Navigation, Partial Prerendering (PPR)
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local)
Additional context
This case doesn't happen on dev mode, only after build and run app. Order of steps to reproduce is important, if you initially going to same page without query params (e.g.
/
) and start to navigate to query (/?tag=other
) - everything works as expected.App become broken after update from
15.0.0-canary.112
to latest canary version, probably any version next to112
have such behaviour. Not sure, but it looks like #68340 relates.Also found out that you can run from browser console:
And app continue working, page updates, router start respond.
It tooks me a lot of time to figure out what going wrong and how to reproduce it. Looks like problem relates to dynamic (server-rendered on demand) pages with query params. I ended up my debugging with something going wrong in
navigateReducer.
The text was updated successfully, but these errors were encountered: