Back

delete problem

  • 0
  • Cloud
Ömür
26 Aug, 2024, 16:14

Hello, I am facing an issue about updating data, I am developing a demo app with next.js, I deleted all data from Appwrite but I am still seeing all data in my app, what could be the reason for this? I'm very new on appwrite

TL;DR
Developers facing issue updating data in a Next.js app after deleting data from Appwrite. Proposed solution: add `export const revalidate = 0` to layout page to force fetching fresh data. Possible cause: Next.js caching HTTP requests.
Kenny
26 Aug, 2024, 16:24

NextJS could be caching the HTTP requests

Kenny
26 Aug, 2024, 16:25

You could add something like this to your layout page to force it to fetch your data fresh every time

TypeScript
 export const revalidate = 0 
Ömür
26 Aug, 2024, 16:56

thank you, will try 🙏

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more