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
810db000
Commit
810db000
authored
Oct 01, 2025
by
Zack Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Segment Cache]: add missing optimistic behavior
parent
79706a33
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
175 additions
and
82 deletions
+175
-82
cache.ts
...es/next/src/client/components/segment-cache-impl/cache.ts
+172
-71
page.tsx
...hparams-reuse-loading/app/onclick-navs/version-1/page.tsx
+1
-1
page.tsx
...hparams-reuse-loading/app/onclick-navs/version-2/page.tsx
+1
-1
page.tsx
...hparams-reuse-loading/app/onclick-navs/version-3/page.tsx
+1
-1
experimental-tests-manifest.json
test/experimental-tests-manifest.json
+0
-8
No files found.
packages/next/src/client/components/segment-cache-impl/cache.ts
View file @
810db000
This diff is collapsed.
Click to expand it.
test/e2e/app-dir/searchparams-reuse-loading/app/onclick-navs/version-1/page.tsx
View file @
810db000
...
@@ -7,7 +7,7 @@ export default function Page() {
...
@@ -7,7 +7,7 @@ export default function Page() {
return
(
return
(
<>
<>
<
div
>
<
div
>
<
Link
href=
"/search-params?id=1"
prefetch
>
<
Link
href=
"/search-params?id=1"
prefetch
=
"unstable_forceStale"
>
/search-params?id=1 (prefetch: true)
/search-params?id=1 (prefetch: true)
</
Link
>
</
Link
>
</
div
>
</
div
>
...
...
test/e2e/app-dir/searchparams-reuse-loading/app/onclick-navs/version-2/page.tsx
View file @
810db000
...
@@ -7,7 +7,7 @@ export default function Page() {
...
@@ -7,7 +7,7 @@ export default function Page() {
return
(
return
(
<>
<>
<
div
>
<
div
>
<
Link
href=
"/search-params"
prefetch
>
<
Link
href=
"/search-params"
prefetch
=
"unstable_forceStale"
>
/search-params (prefetch: true)
/search-params (prefetch: true)
</
Link
>
</
Link
>
</
div
>
</
div
>
...
...
test/e2e/app-dir/searchparams-reuse-loading/app/onclick-navs/version-3/page.tsx
View file @
810db000
...
@@ -7,7 +7,7 @@ export default function Page() {
...
@@ -7,7 +7,7 @@ export default function Page() {
return
(
return
(
<>
<>
<
div
>
<
div
>
<
Link
href=
"/search-params?id=1"
prefetch
>
<
Link
href=
"/search-params?id=1"
prefetch
=
"unstable_forceStale"
>
/search-params?id=1 (prefetch: true)
/search-params?id=1 (prefetch: true)
</
Link
>
</
Link
>
</
div
>
</
div
>
...
...
test/experimental-tests-manifest.json
View file @
810db000
...
@@ -18,14 +18,6 @@
...
@@ -18,14 +18,6 @@
],
],
"failed"
:
[]
"failed"
:
[]
},
},
"test/e2e/app-dir/searchparams-reuse-loading/searchparams-reuse-loading.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"searchparams-reuse-loading should re-use loading from
\"
full
\"
prefetch for param-full URL when navigating to param-full route"
,
"searchparams-reuse-loading should re-use loading from
\"
full
\"
prefetch for param-full URL when navigating to param-less route"
,
"searchparams-reuse-loading should re-use loading from
\"
full
\"
prefetch for param-less URL when navigating to param-full route"
]
},
"test/production/app-dir/browser-chunks/browser-chunks.test.ts"
:
{
"test/production/app-dir/browser-chunks/browser-chunks.test.ts"
:
{
"passed"
:
[
"passed"
:
[
"browser-chunks must not bundle any server modules into browser chunks"
,
"browser-chunks must not bundle any server modules into browser chunks"
,
...
...
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