Next.js Discord

Discord Forum

How to revalidate path for a slot?

Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Open in Discord
Australian Freshwater CrocodileOP
I have a slot, say @potato within page /solanaceae. This slot contains a server action, that once complete needs the RSC @potato to re render. Currently this is achieved by calling revalidatePath(/solanaceae).

Is there a way to trigger revalidation for the slot only? like revalidatePath(@potato). Is there a strategy that allows for revalidation of a single server component, without having to revalidate the whole page?

0 Replies