How to revalidate server action
Unanswered
Corn Crake posted this in #help-forum
Corn CrakeOP
I have a server action that tells the client whether it is logged in by checking their cookies. When the user logs in or logs out I need this server action to be re-run. How do I do this? I've tried using revalidatePath but can't get it working. I don't see any concrete example on the docs either. Currently I am stuck getting 'Error: Invariant: static generation store missing in revalidateTag' errors (when using revalidatePath)
1 Reply
Corn CrakeOP
I think I could easily achieve this using react-query, but then I would have to make a route which I am trying to avoid if possible