Next.js Discord

Discord Forum

Revalidate Path On Client Component

Answered
Carolina Dog posted this in #help-forum
Open in Discord
Carolina DogOP
Is it possible to use revalidatePath() in client component? Or is it only possible in server comps/routehandler/middleware/serveractions ?
Because I'm getting an error says
"Error: Invariant: static generation store missing in revalidateTag /dashboard/my-account"
Thanks
Answered by joulev
it's not possible to use revalidatePath() in client components
View full answer

2 Replies