Rank, 14 days: 10 on the Next.js sheet
1 person reported

All time, since Nov 3.

Render loop from default parameter

In the minified build the module-level function is inlined into the default parameter, so the effect dependency changes each render and the render count never settles.

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/next-js/issues/25381/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Production build recreates module-level default parameter function each render, causing re.

Is this your bug?

File my report
Where
Production build minification
Versions
16.5.0-canary.18 to 16.5.0-canary.35
Platforms
Linux
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. Production build recreates a module-level function on every render (render loop) since 16.5.0-canary.18On GitHub#101124
  2. Production build creates a new function per render for a module-level default parameter (render loop), regression in 16.5.0-canary.18On GitHub#101123

Do you work on Next.js?

Claim its RAP Sheet to see what your users report and answer them in one place.