Next

How do Server Actions fail revalidation in parallel routes?

November 28, 2025

download ready
Thank You
Your submission has been received.
We will be in touch and contact you soon!

Server Actions invalidate caches via tags/paths, but parallel routes (@sidebar, @main) maintain separate caches; single revalidateTag('posts') only updates one slot, leaving others stale until navigation.

Example:

Code

'use server';
import { revalidateTag } from 'next/cache';

export async function updatePost(formData: FormData) {
  await db.post.update(formData);
  
  // Fix: Tag each parallel route slot
  revalidateTag(['@sidebar-posts', '@main-posts']);
}
      
Hire Now!

Need Help with Next Development ?

Work with our skilled next developers to accelerate your project and boost its performance.
**Hire now**Hire Now**Hire Now**Hire now**Hire now

How do Server Actions fail revalidation in parallel routes?

Server Actions invalidate caches via tags/paths, but parallel routes (@sidebar, @main) maintain separate caches; single revalidateTag('posts') only updates one slot, leaving others stale until navigation.

Example:

Code

'use server';
import { revalidateTag } from 'next/cache';

export async function updatePost(formData: FormData) {
  await db.post.update(formData);
  
  // Fix: Tag each parallel route slot
  revalidateTag(['@sidebar-posts', '@main-posts']);
}