How do you revalidateTag or revalidatePath with a server component prisma fetch or server action?
I am not using next.js fetch out of the box, just a prisma get. How do I revalidate it with a tag or even the whole path when I submit a form? Next.js examples are all based on the fetch() and/or api route.
Solution:Jump to solution
Nevermind, it was more straightforward than I assumed - I just added
revalidatePath('/path/path);
to my prisma update server action.1 Reply
Solution
Nevermind, it was more straightforward than I assumed - I just added
revalidatePath('/path/path);
to my prisma update server action.