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).
7 Replies
Neto
Neto2y ago
I believe that server components are cached by default Unless you need some cookie or header specific thing inside the route, just setting an invalidation config is enough
Adevien
Adevien2y ago
i've got a simple example of a db query and a form with a serverAction to post when i enable the serverAction the page gets set as λ (Server) and its not cached
Neto
Neto2y ago
for app dir
Neto
Neto2y ago
both of them do the trick
Adevien
Adevien2y ago
god , thanks , why i never found that page nope i must be doing something wrong, its still considered as SSR @nyx (Rustular DevRel) turns out its a bug, thanks for the help., imma close this and wait for fix.
Want results from more Discord servers?
Add your server