#does revalidatePath() apply to layout?

7 messages · Page 1 of 1 (latest)

sudden pike
#

using App Router, Server Components

so I have a homepage /dashboard and /dashboard/[...etc] are some other subpages

if I do revalidatePath("/dashboard") would that trigger a serverside update for every page inside of /dashboard including the layouts? I only want to revalidate /dashboard/page.tsx

if this isn't the pattern, is there a way to recursively do this? (just curious)

placid terraceBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

sudden pike
#

nevermind I found it

final sun
#

Yes, you have to pass it as a paramter.

#

You can mark it answered.

placid terraceBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1272673355866046566 message)