Skip to content
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

Nextjs 15 with dynamicIO: true renders RSC 3 times #72948

Open
yudistiraashadi opened this issue Nov 19, 2024 · 1 comment
Open

Nextjs 15 with dynamicIO: true renders RSC 3 times #72948

yudistiraashadi opened this issue Nov 19, 2024 · 1 comment
Labels
bug Issue was opened via the bug report template. dynamicIO Related to dynamicIO. linear: next Confirmed issue that is tracked by the Next.js team.

Comments

@yudistiraashadi
Copy link

Link to the code that reproduces this issue

https://stackblitz.com/~/github.com/yudistiraashadi/nextjs-15-canary-dynamicio-bug

To Reproduce

  1. pnpx create-next-app@canary
  2. enable dynamicIO: true on next.config.ts
  3. add console.log("something") on the initial template page.tsx and see the console.log runs 3 times
  4. Tried with pnpm and npm, same result

Current vs. Expected behavior

Run RSC 1 time only. Without dynamicIO: true it runs 1 time

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #48~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct  7 11:24:13 UTC 2
  Available memory (MB): 15731
  Available CPU cores: 20
Binaries:
  Node: 20.18.0
  npm: 10.8.2
  Yarn: N/A
  pnpm: 9.13.2
Relevant Packages:
  next: 15.0.4-canary.19 // Latest available version is detected (15.0.4-canary.19).
  eslint-config-next: 15.0.4-canary.19
  react: 19.0.0-rc-380f5d67-20241113
  react-dom: 19.0.0-rc-380f5d67-20241113
  typescript: 5.6.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

dynamicIO

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

No response

@yudistiraashadi yudistiraashadi added the bug Issue was opened via the bug report template. label Nov 19, 2024
@github-actions github-actions bot added the dynamicIO Related to dynamicIO. label Nov 19, 2024
@samcx
Copy link
Member

samcx commented Nov 20, 2024

@yudistiraashadi I was able to replicate. We are taking a look!

@samcx samcx added the linear: next Confirmed issue that is tracked by the Next.js team. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. dynamicIO Related to dynamicIO. linear: next Confirmed issue that is tracked by the Next.js team.
Projects
None yet
Development

No branches or pull requests

2 participants