-
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
Page Reloads When Switching Pages After Rebuilding #75228
Comments
@build24001 I was not able to replicate the RSC payload errors on the latest canary. Can you share a video on how you replicated it? I think the hard refresh is expected after you rebuild if current browser session was not refreshed. When |
@samcx Sorry, I have improved the code. copy_FDCF7F79-BB84-46F2-8817-0E968220EAD7.MOVThe issue I'm encountering is similar to what @Onurfesci described. Due to the extensive use of router.push, after upgrading from Next.js 14 to 15, pages randomly refresh during navigation, forcing me to downgrade back to Next.js 14. |
For reference, I've also opened an issue with a reproduction: #75441 I think it may be exactly the same issue, the behaviour seems to be identical. |
Link to the code that reproduces this issue
https://github.com/build24001/test-layout
To Reproduce
1.Run npm run build
2.Run npm run start
3.Click on all Links in the Menus
4.Modify the content of the test page
5.Run npm run build again
6.Run npm run start again
7.Click on the test page => It has not been updated to the latest version
8.Refresh the browser
9.Click on other pages => The pages may be reloaded each time, potentially triggering a full page refresh
Current vs. Expected behavior
After rebuilding, clicking on the menu after refreshing the browser causes the page to reload, and there are RSC errors.
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:32:11 PDT 2023; root:xnu-10002.41.9~7/RELEASE_ARM64_T6030 Available memory (MB): 18432 Available CPU cores: 12 Binaries: Node: 18.20.1 npm: 10.5.0 Yarn: N/A pnpm: 9.7.0 Relevant Packages: next: 15.1.6 // Latest available version is detected (15.1.6). eslint-config-next: 15.1.5 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: