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

Root intercepting route with Edge runtime leads to root layout re-render with malformed params #70654

Open
ericmatthys opened this issue Oct 1, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template. Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes.

Comments

@ericmatthys
Copy link
Contributor

ericmatthys commented Oct 1, 2024

Link to the code that reproduces this issue

https://github.com/ericmatthys/edge-intercepting-route-bug

To Reproduce

  1. Go to https://edge-intercepting-route-bug.vercel.app/en/example
  2. Click on "Intercept /en/example/working"
  3. See that the locale param is correct
  4. Click on "Intercept /en/broken"
  5. See that the locale param is "%5Blocale%5D" after the root layout re-renders

Current vs. Expected behavior

I would not expect the root layout to re-render when intercepting the route and the params.locale value should never be an encoded string of the param name. This currently only happens with the edge runtime. The default runtime is ok.

Provide environment information

Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
Binaries:
  Node: 20.17.0
  npm: 10.8.2
  Yarn: N/A
  pnpm: 9.9.0
Relevant Packages:
  next: 14.2.13 // Latest available version is detected (14.2.13).
  eslint-config-next: 14.2.13
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.6.2
Next.js Config:
  output: N/A

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

Parallel & Intercepting Routes

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

next dev (local), Vercel (Deployed)

Additional context

I can also reproduce the issue with 15.0.0-canary.174.

@ericmatthys ericmatthys added the bug Issue was opened via the bug report template. label Oct 1, 2024
@github-actions github-actions bot added the Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes. label Oct 1, 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. Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes.
Projects
None yet
Development

No branches or pull requests

1 participant