does revalidatePath() apply to layout?
Answered
Peterbald posted this in #help-forum
PeterbaldOP
using App Router, Server Components
so I have a homepage
if I do
if this isn't the pattern, is there a way to recursively do this? (just curious)
so I have a homepage
/dashboard and /dashboard/[...etc] are some other subpagesif 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.tsxif this isn't the pattern, is there a way to recursively do this? (just curious)
4 Replies
PeterbaldOP
Answer
PeterbaldOP
nevermind I found it
Spectacled bear
Yes, you have to pass it as a paramter.
You can mark it answered.