Search
Setup for Free
TTC
Theo's Typesafe Cult
•
3y ago
Adevien
ServerActions and ISR
Hey
, does anyone know how to do on demand revalidation
(ISR
) using the new AppRouter
? mainly non fetch based data
(db query
, computing
, etc
)
.
Theo's Typesafe Cult
Join
26,231
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
N
Neto
•
6/10/23, 10:36 PM
I believe that server components are cached by default
N
Neto
•
6/10/23, 10:36 PM
Unless you need some cookie or header specific thing inside the route
, just setting an invalidation config is enough
A
Adevien
OP
•
6/10/23, 10:38 PM
i
've got a simple example of a db query and a form with a serverAction to post
A
Adevien
OP
•
6/10/23, 10:38 PM
when i enable the serverAction the page gets set as
λ
(Server
)
A
Adevien
OP
•
6/10/23, 10:39 PM
and its not cached
N
Neto
•
6/10/23, 10:43 PM
https://nextjs.org/docs/app/building-your-application/data-fetching/revalidating#on-demand-revalidation
Data Fetching: Revalidating
Learn about revalidating data in Next
.js using Incremental Static Regeneration
.
N
Neto
•
6/10/23, 10:43 PM
for app dir
N
Neto
•
6/10/23, 10:43 PM
https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions#on-demand-revalidation
Data Fetching: Server Actions
Use Server Actions to mutate data in your Next
.js application
.
N
Neto
•
6/10/23, 10:43 PM
both of them do the trick
A
Adevien
OP
•
6/10/23, 10:45 PM
god
, thanks
, why i never found that page
A
Adevien
OP
•
6/10/23, 11:21 PM
nope i must be doing something wrong
, its still considered as SSR
A
Adevien
OP
•
6/11/23, 2:43 PM
@nyx
(Rustular DevRel
) turns out its a bug
, thanks for the help
.
, imma close this and wait for fix
.
Similar Threads
ISR error
TTC
Theo's Typesafe Cult / questions
3y ago
Nextjs + Cloudflare + ISR
TTC
Theo's Typesafe Cult / questions
2y ago
ISR an RSC
TTC
Theo's Typesafe Cult / questions
3y ago
ISR in frameworks
TTC
Theo's Typesafe Cult / questions
4y ago