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
Neto13mo 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
Adevien13mo 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
Neto13mo ago
Neto
Neto13mo ago
for app dir
Neto
Neto13mo ago
both of them do the trick
Adevien
Adevien13mo 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.