-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed as not planned
Labels
PerformanceAnything with regards to Next.js performance.Anything with regards to Next.js performance.ReactRelated to React.Related to React.linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.locked
Description
Link to the code that reproduces this issue
https://github.com/mikehdt/nextjs-15-2-perf-issue
To Reproduce
pnpm i
pnpm dev
Click on some of the buttons and observe performance. There's a lag to the action.
- Revert
next
inpackage.json
to15.1.7
pnpm i
pnpm dev
The buttons are noticeably more performant.
Current vs. Expected behavior
There should not be a performance regression?
Using the React dev tools profiler, we can see the difference (this is a slice that shows the render time for clicking one of the buttons):
Next.js 15.1.7
Next.js 15.2.1
Provide environment information
Running on Windows 11 / Node 22 but the env shouldn't really be an issue.
Which area(s) are affected? (Select all that apply)
React, Performance
Which stag 6CE8 e(s) are affected? (Select all that apply)
next dev (local)
Additional context
It took me three days of trying to debug my own code in a personal project before I realised it wasn't me, it was next.js 😅
wrteam-sumit, martin-eq, schnubor, GrahamQuan, catlan and 22 morewh1teee, samcx, ErDanieh, wintercounter, BrandonFitzgibbon and 1 more
Metadata
Metadata
Assignees
Labels
PerformanceAnything with regards to Next.js performance.Anything with regards to Next.js performance.ReactRelated to React.Related to React.linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.locked