hey there, I am facing an issue when I have any new data in my database i can't see it because of the next js cashing. how can I disable it? I can do it with the next.js fetch method, but here I am confused.
try const _ = cookie() first line of your function
do you mean cookies from next/header?
first line of the function , you don't want cache.
you can try this:
revalidatePath("path");
Use this function where you add, update or delete data.
path is the URL where you list/get the documents.
Recommended threads
- AstroJS Not Listed as a Web Framework Op...
Hey folks, as a followup to this post https://discord.com/channels/564160730845151244/1102936099745177700/1440603125642952734 I was trying to see if there was a...
- Database table mysteriously empty this m...
Hello, I'm testing out appwrite (free) with a simple vue app. This morning a I created a few indexes on a table, and then noticed that it was empty... I don't e...
- Issue: Getting 401 Unauthorized Error Wh...
Hi team, I'm encountering a 401 user_unauthorized error when trying to create a row in my projects table, even though I have full user permissions configured fo...