-
Notifications
You must be signed in to change notification settings - Fork 31.2k
notFound breaks Suspense in layout with cacheComponents enabled #86251
Copy link
Copy link
Labels
Cache ComponentsRelated to the `cacheComponents`, `useCache`, or `ppr` experimental flags.Related to the `cacheComponents`, `useCache`, or `ppr` experimental flags.Loading UI and StreamingRelated to loading UI (loading.tsx) and streaming.Related to loading UI (loading.tsx) and streaming.Not FoundRelated to the not-found.tsx file or the notFound() function.Related to the not-found.tsx file or the notFound() function.linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.locked
Metadata
Metadata
Assignees
Labels
Cache ComponentsRelated to the `cacheComponents`, `useCache`, or `ppr` experimental flags.Related to the `cacheComponents`, `useCache`, or `ppr` experimental flags.Loading UI and StreamingRelated to loading UI (loading.tsx) and streaming.Related to loading UI (loading.tsx) and streaming.Not FoundRelated to the not-found.tsx file or the notFound() function.Related to the not-found.tsx file or the notFound() function.linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.locked
Type
Fields
Give feedbackNo fields configured for Bug.
Link to the code that reproduces this issue
https://github.com/ottetz/next-not-found-issue
To Reproduce
Application error: a client-side exception has occurred while loading localhost (see the browser console for more information).Console shows
Uncaught Error: Connection closed.Current vs. Expected behavior
Running app in dev mode corretly shows not found stub and Fetched Data from suspended component
Expected built app to do the same
Provide environment information
Which area(s) are affected? (Select all that apply)
cacheComponents, Loading UI and Streaming, Not Found
Which stage(s) are affected? (Select all that apply)
next build (local), Vercel (Deployed)
Additional context
cacheComponents: trueis required in next.config.js to reproduce