-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Description
Link to the code that reproduces this issue
https://github.com/amavisse/next14-test
To Reproduce
I reproduced the issue here:
https://next13-test-teal.vercel.app/ - repo: https://github.com/amavisse/next13-test
https://next14-test-delta.vercel.app/ - repo: https://github.com/amavisse/next14-test
- Visit both links
- Click on any of the top links to change route and notice the difference in loading page
Current vs. Expected behavior
Current: page loading is very slow on next v14.1.0
Expected: fast loading as in https://next13-test-teal.vercel.app/
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Home
Binaries:
Node: 20.2.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.4.6
eslint-config-next: 14.1.0
react: 18.2.0
react-dom: 18.2.0
typescript: 5.3.3
-------------------------------------
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Home
Binaries:
Node: 20.2.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 14.1.0
eslint-config-next: 14.1.0
react: 18.2.0
react-dom: 18.2.0
typescript: 5.3.3
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
App Router, Routing (next/router, next/navigation, next/link)
Which stage(s) are affected? (Select all that apply)
next dev (local), Vercel (Deployed)
Additional context
In the next v13.4.6, everything is going smoothly, while the v14.1.0 one is very slow when changing routes
Inspecting the dev console, inside the network tab, you can see the routes are correctly pre-fetched but when moving to the route, it's fetching it again, making it extremely slower.
Am I doing something wrong? bad practices? is it a bug?