next.js
Add `export const unstable_staleTime` route segment config
#88609
Open
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
46
Changes
View On
GitHub
Add `export const unstable_staleTime` route segment config
#88609
feedthejim
wants to merge 46 commits into
canary
from
feat/staletime-segment-config
nextjs-bot
added
created-by: Next.js team
nextjs-bot
added
Documentation
nextjs-bot
added
tests
nextjs-bot
added
type: next
feedthejim
changed the title
Add export const staleTime segment config option
Add `export const staleTime` route segment config
89 days ago
feedthejim
force pushed
from
6f38a720
to
4c842262
89 days ago
feedthejim
force pushed
from
4c842262
to
72b120f4
89 days ago
vercel
commented on 2026-01-15
vercel
commented on 2026-01-26
Add export const staleTime segment config option
c174aa81
Replace header-based staleTime tests with behavior tests
04e65a11
rename
cde89fdf
fix: add unstable_staleTime to type definitions
b9fefae8
docs: fix unstable_staleTime anchor link in table
3540aea6
fix: make unstable_staleTime incompatible with cacheComponents
a0ebe1a6
fix: skip stale-time-export tests for cache components mode
807a336c
docs: add CI test modes and skip patterns to AGENTS.md
9cb7d004
feedthejim
changed the title
Add `export const staleTime` route segment config
Add `export const unstable_staleTime` route segment config
76 days ago
feedthejim
force pushed
from
d9e321ca
to
9cb7d004
76 days ago
Fixup tests
d8d2617c
staletime export only works on pages
3631d6b2
Make sure unstable_staleTime in a layout properly fails the build
821a562c
nextjs-bot
added
Turbopack
Make the turbo and webpack error messages the same
93434152
Remove stale error
24e25b5f
Ensure builds fail in turbopack if unstable_staleTime is used when ca…
0d68ace6
Merge remote-tracking branch 'origin/canary' into feat/staletime-segm…
a325ffbe
Tidying
38c0fd05
prettier
3ae9d4c8
wip
3f5f6a9c
Merge branch 'canary' into feat/staletime-segment-config
0400a937
Exclude test from cache-components run
bf73658e
Merge branch 'canary' into feat/staletime-segment-config
a21f4028
acdlite
commented on 2026-02-11
Merge remote-tracking branch 'origin/canary' into feat/staletime-segm…
c174883c
Remove changes to AGENTS.md
93709318
Add missing workUnitStore type
01e4fff3
Restore deleted stale-times test
59071882
Allow unstable_staleTime to be used when cacheComponents is enabled
7fa66cc8
Prettier
9617c03a
plan for next change
983f3f9a
Change staleTime to an object instead of a single number
ac580fc0
Failing test for dynamic override
82d1456a
Revert staleTime to a single number instead of an object
57eb3fb6
Failing test for dynamic page
503682a8
Add support for unstable_staleTime on dynamic pages
999110d0
Ensure staleTime export can be used when no global staleTimes are pre…
2338fa77
Remove old plan
5bd2a469
wip
813a019d
Test both link clicks and browser back button
343596b0
Failing test for using unstable_staleTime and unstable_instant together
dd4aff25
Implement build failure for instant/staleTime being used together
e561ead3
wip
f963ae7e
Tidy up test
63a90491
Tidy tests
cfe286e2
Merge remote-tracking branch 'origin/canary' into feat/staletime-segm…
278ab851
Touch up tests + make them more robust
1fc76bad
Add placeholder for cacheComponents behavior
09c241f4
Merge remote-tracking branch 'origin/canary' into feat/staletime-segm…
05e7ee62
Login to write a write a comment.
Login via GitHub
Reviewers
acdlite
vercel
Assignees
No one assigned
Labels
type: next
created-by: Next.js team
Documentation
Turbopack
tests
Milestone
No milestone
Login to write a write a comment.
Login via GitHub