Back

---DB doesn t update ----

  • 0
  • Databases
  • Tools
  • Web
Youseeit'sme
30 Sep, 2024, 18:22

hey y all 😄 , can sombody let me knOW why this app (Next.js TS ) ⚙️ that I have doesn t update the data in the database 🗂️ but currently only in my UI ?

https://codesandbox.io/p/devbox/landing-page-kcs4sw?file=%2Fapp%2Fadmin%2Fpage.tsx%3A303%2C22

TL;DR
Developers are experiencing issues with data not updating in a Next.js TypeScript app. The problem might be related to NextJS caching requests, which could be disabled. No console errors reported. Refresh sometimes doesn't update data. Solution may involve investigating Next.js caching and its potential impact. Link to the sandbox: [Sandbox Link](https://codesandbox.io/p/devbox/landing-page-kcs4sw?file=%2Fapp%2Fadmin%2Fpage.tsx%3A303%2C22)
Kenny
30 Sep, 2024, 18:46

If you refresh does the data persist in your UI? Are you seeing any console errors?

Youseeit'sme
1 Oct, 2024, 08:51

yeah, data is still the same even after refresh, no error related to these types or components

Steven
1 Oct, 2024, 19:43

nextJS caches requests. You may need to look into that and how to disable it

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