next.js
Add `export const unstable_staleTime` route segment config
#88609
Open

Add `export const unstable_staleTime` route segment config #88609

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

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone