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

Hot reload causes tab to hang and crash #65537

Open
erikshestopal opened this issue May 8, 2024 · 1 comment
Open

Hot reload causes tab to hang and crash #65537

erikshestopal opened this issue May 8, 2024 · 1 comment
Labels
bug Issue was opened via the bug report template. linear: turbopack Confirmed issue that is tracked by the Turbopack team. Performance Anything with regards to Next.js performance. Turbopack Related to Turbopack with Next.js.

Comments

@erikshestopal
Copy link

erikshestopal commented May 8, 2024

Link to the code that reproduces this issue

https://github.com/erikshestopal/next-reload-bug

To Reproduce

Instructions are in app/_components/form-element.tsx in the repo.

Current vs. Expected behavior

Current behavior
Hot reloading a component that uses z.function from the zod library causes the tab to hang with high CPU usage.

Expected behavior
Tab should not hang.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 10
Binaries:
  Node: 19.0.0
  npm: 8.19.2
  Yarn: 1.22.19
  pnpm: 9.0.1
Relevant Packages:
  next: 14.3.0-canary.50 // Latest available version is detected (14.3.0-canary.50).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.1.3
Next.js Config:
  output: N/A

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

Performance, Turbopack

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

next dev (local)

Additional context

No response

@erikshestopal erikshestopal added the bug Issue was opened via the bug report template. label May 8, 2024
@github-actions github-actions bot added Performance Anything with regards to Next.js performance. Turbopack Related to Turbopack with Next.js. labels May 8, 2024
@DavidShestopal

This comment was marked as off-topic.

@timneutkens timneutkens added the linear: turbopack Confirmed issue that is tracked by the Turbopack team. label May 9, 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. linear: turbopack Confirmed issue that is tracked by the Turbopack team. Performance Anything with regards to Next.js performance. Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

No branches or pull requests

3 participants