Revalidate Path On Client Component
Answered
Carolina Dog posted this in #help-forum
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
Because I'm getting an error says
"Error: Invariant: static generation store missing in revalidateTag /dashboard/my-account"
Thanks
2 Replies
@Carolina Dog 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
it's not possible to use revalidatePath() in client components
Answer
Carolina DogOP
Okay, thank you!