vercel/next.js

Revalidate ignored for index route of a catch all route

nsams opened this issue · 0 comments

nsams commented

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/eager-field-nfwnh6?file=%2Fapp%2F%5B%5B...path%5D%5D%2Fpage.tsx%3A11%2C1&workspaceId=158e05b4-11a3-4a66-8a49-f399b2b301f5

To Reproduce

  1. start the application using next build && next start (done by codesandbox task)
  2. open / and refresh a few times
  3. notice the page re-renders every second
  4. open /foo and refresh a few times
  5. notice the page re-renders every 10 seconds (as specified by revalidate)

Current vs. Expected behavior

Full Route Cache should also respect revalidate for / route

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 14.3.0-canary.63 // Latest available version is detected (14.3.0-canary.63).
  eslint-config-next: N/A
  react: 19.0.0-beta-4508873393-20240430
  react-dom: 19.0.0-beta-4508873393-20240430
  typescript: 5.1.3
Next.js Config:
  output: N/A

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

Runtime

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

next start (local)

Additional context

No response