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
92d2cc1f
Commit
92d2cc1f
authored
Sep 11, 2025
by
Zack Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
failing repro for parallel route fallback shells
parent
5b4cdc3d
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
89 additions
and
0 deletions
+89
-0
context.tsx
test/e2e/app-dir/parallel-routes-catchall/app/context.tsx
+10
-0
page.tsx
...-catchall-fallback-shell/app/@slot/[...catchAll]/page.tsx
+3
-0
default.tsx
...llel-routes-catchall-fallback-shell/app/@slot/default.tsx
+3
-0
context.tsx
...r/parallel-routes-catchall-fallback-shell/app/context.tsx
+10
-0
page.tsx
.../parallel-routes-catchall-fallback-shell/app/foo/page.tsx
+3
-0
layout.tsx
...ir/parallel-routes-catchall-fallback-shell/app/layout.tsx
+21
-0
page.tsx
...-dir/parallel-routes-catchall-fallback-shell/app/page.tsx
+11
-0
next.config.js
...ir/parallel-routes-catchall-fallback-shell/next.config.js
+10
-0
parallel-routes-catchall-fallback-shell.test.ts
...ack-shell/parallel-routes-catchall-fallback-shell.test.ts
+18
-0
No files found.
test/e2e/app-dir/parallel-routes-catchall/app/context.tsx
0 → 100644
View file @
92d2cc1f
'use client'
import
{
usePathname
}
from
'next/navigation'
import
React
from
'react'
const
MyContext
=
React
.
createContext
(
'default value'
)
export
function
ContextProvider
({
children
}:
{
children
:
React
.
ReactNode
})
{
const
pathname
=
usePathname
()
return
<
MyContext
.
Provider
value=
{
pathname
}
>
{
children
}
</
MyContext
.
Provider
>
}
test/production/app-dir/parallel-routes-catchall-fallback-shell/app/@slot/[...catchAll]/page.tsx
0 → 100644
View file @
92d2cc1f
export
default
function
Page
()
{
return
<
div
>
slot catchall
</
div
>
}
test/production/app-dir/parallel-routes-catchall-fallback-shell/app/@slot/default.tsx
0 → 100644
View file @
92d2cc1f
export
default
function
Page
()
{
return
'@slot default'
}
test/production/app-dir/parallel-routes-catchall-fallback-shell/app/context.tsx
0 → 100644
View file @
92d2cc1f
'use client'
import
{
usePathname
}
from
'next/navigation'
import
React
from
'react'
const
MyContext
=
React
.
createContext
(
'default value'
)
export
function
ContextProvider
({
children
}:
{
children
:
React
.
ReactNode
})
{
const
pathname
=
usePathname
()
return
<
MyContext
.
Provider
value=
{
pathname
}
>
{
children
}
</
MyContext
.
Provider
>
}
test/production/app-dir/parallel-routes-catchall-fallback-shell/app/foo/page.tsx
0 → 100644
View file @
92d2cc1f
export
default
function
Page
()
{
return
<
div
>
foo
</
div
>
}
test/production/app-dir/parallel-routes-catchall-fallback-shell/app/layout.tsx
0 → 100644
View file @
92d2cc1f
import
React
from
'react'
import
{
ContextProvider
}
from
'./context'
export
default
function
Root
({
children
,
slot
,
}:
{
children
:
React
.
ReactNode
slot
:
React
.
ReactNode
})
{
return
(
<
html
>
<
body
>
<
ContextProvider
>
<
div
id=
"children"
>
{
children
}
</
div
>
<
div
id=
"slot"
>
{
slot
}
</
div
>
</
ContextProvider
>
</
body
>
</
html
>
)
}
test/production/app-dir/parallel-routes-catchall-fallback-shell/app/page.tsx
0 → 100644
View file @
92d2cc1f
import
Link
from
'next/link'
export
default
async
function
Home
()
{
return
(
<
div
>
<
div
>
<
Link
href=
"/foo"
>
Go to /foo
</
Link
>
</
div
>
</
div
>
)
}
test/production/app-dir/parallel-routes-catchall-fallback-shell/next.config.js
0 → 100644
View file @
92d2cc1f
/**
* @type {import('next').NextConfig}
*/
const
nextConfig
=
{
experimental
:
{
cacheComponents
:
true
,
},
}
module
.
exports
=
nextConfig
test/production/app-dir/parallel-routes-catchall-fallback-shell/parallel-routes-catchall-fallback-shell.test.ts
0 → 100644
View file @
92d2cc1f
import
{
nextTestSetup
}
from
'e2e-utils'
describe
(
'parallel-routes-catchall-fallback-shell'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
})
it
(
'should not include catchall route in build output'
,
async
()
=>
{
expect
(
next
.
cliOutput
).
not
.
toContain
(
'/[...catchAll]'
)
})
it
(
'should work'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/'
)
await
browser
.
elementByCss
(
'[href="/foo"]'
).
click
()
expect
(
await
browser
.
elementById
(
'slot'
).
text
()).
toBe
(
'slot catchall'
)
expect
(
await
browser
.
elementById
(
'children'
).
text
()).
toBe
(
'foo'
)
})
})
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