Next.js Discord

Discord Forum

revalidatePath not working as expected

Unanswered
AlbertC0527 posted this in #help-forum
Open in Discord
I noticed that when calling revalidatePath('/tickets') in a server action defined in the file '/tickets/[ticketId]/page.tsx' also re renders the root layout. I added a log in root layout file and it is being logged every time the server action is called. Is this intended?
This is in productiom mode.

0 Replies