-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Crazy random full page reloads when combining app dir and pages dir #49154
Comments
No, this bug does not happen without the static and unused Yes it only happens for specific combinations of catch all segment values. |
Probably related to the 2% warned here #46283 But should this come into play at all for a navigation within the exact same route? |
Remains relevant as of 13.4.0 |
Remains relevant as of 13.4.1 |
Remains relevant as of 13.4.2 and 13.4.3-canary.0 |
This reproduction seems to have been fixed as of 13.4.3-canary.1, owing to #49741 I suppose |
Will reopen this if I happen upon it in the real world again, but this repro seems to have gone the way of the dodo. |
Closing per #49154 (comment) as sounds like this is corrected now, let us know if you are still seeing issues with this after that patch! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Routing (next/router, next/navigation, next/link)
Link to the code that reproduces this issue
https://github.com/klarstrup/next.js-repro-repo/tree/random-hard-navigation
To Reproduce
Enable appDir and have a static page in /app as well as a route in /pages with a dynamic and a catchall segment.
The repro includes an example for iterating through combinations of catch all segment values at http://localhost:3000/dynamic-part/7/1
Describe the Bug
What should be client-side soft navigations become hard page loads at seemingly randomly URLs like
Router.replace("/dynamic-part/7/2")
andRouter.replace("/dynamic-part/7/3")
, but not adjacent URLs on the same route such asRouter.replace("/dynamic-part/7/1")
andRouter.replace("/dynamic-part/7/4")
Expected Behavior
Router.replace("/dynamic-part/7/2")
andRouter.replace("/dynamic-part/7/3")
should behave just asRouter.replace("/dynamic-part/7/1")
andRouter.replace("/dynamic-part/7/4")
do, with a fully client-side navigation without a page reload.The text was updated successfully, but these errors were encountered: