Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
fc8f96d7
Unverified
Commit
fc8f96d7
authored
Oct 01, 2026
by
Hendrik Liebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[do-not-merge] Remove fallback shell cache miss early return logic
Just trying to see which tests cover this branch.
parent
a8ada873
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
use-cache-wrapper.ts
packages/next/src/server/use-cache/use-cache-wrapper.ts
+0
-21
No files found.
packages/next/src/server/use-cache/use-cache-wrapper.ts
View file @
fc8f96d7
...
@@ -2896,27 +2896,6 @@ export async function cache(
...
@@ -2896,27 +2896,6 @@ export async function cache(
switch
(
workUnitStore
.
type
)
{
switch
(
workUnitStore
.
type
)
{
case
'prerender'
:
case
'prerender'
:
if
(
resumeDataCache
?.
mutable
===
false
)
{
// We're prerendering a fallback shell whose Resume Data Cache is
// the prefilled, read-only seed from a phase-1 prerender of a more-
// specific sibling route. A miss here means the cache key depends
// on a fallback param. We short-circuit to a dynamic hole (which
// may produce an empty shell if there's no parent Suspense
// boundary). Currently this also catches layouts and pages that
// don't read params, which will be improved when we implement
// NAR-136. Compared to the instrumentation-based params bailout we
// also do here, this covers the case where params are transformed
// with an async function before being passed into the "use cache"
// function, which escapes the instrumentation.
// The cache key depends on fallback params, which are URL data.
return
makeURLDataHangingPromise
(
workUnitStore
.
renderSignal
,
workStore
.
route
,
'dynamic "use cache"'
,
workUnitStore
)
}
// fallthrough
case
'prerender-runtime'
:
case
'prerender-runtime'
:
if
(
!
cacheSignal
)
{
if
(
!
cacheSignal
)
{
// This is the final prerender (cacheSignal is null), which means
// This is the final prerender (cacheSignal is null), which means
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment