appwrite / sdk-for-web

[READ-ONLY] Official Appwrite Web SDK 🧑

Home Page:https://appwrite.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› Bug Report: Database listDocuments method return old/cached data

gladbhex opened this issue Β· comments

πŸ‘Ÿ Reproduction steps

Create a document within a collection using 'createDocument' and update using 'updateDocument'. Now fetch the document list using listDocuments returns old data. The same happens even after the entire collection has been deleted, the method returns the data that does not exist. Tried on the incognito tab, and on the first query, it returned the correct data, further updates to the document resulted in the same behavior.

πŸ‘ Expected behavior

Should return up-to-date data from database

πŸ‘Ž Actual Behavior

Returns old or deleted documents

🎲 Appwrite version

Different version (specify in environment)

πŸ’» Operating system

Windows

🧱 Your Environment

appwrite-web-sdk v13.0.0
appwrite server v1.4.4 self-hosted on digitalocean
Frontend React v18.2.0

πŸ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

@gladbhex, thanks for creating this issue! πŸ™πŸΌ Does the Appwrite console behave the same way? What other libraries are you using in your app?