appwrite / sdk-for-web

[READ-ONLY] Official Appwrite Web SDK ๐Ÿงก
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
271 stars 58 forks source link

๐Ÿ› Bug Report: Database listDocuments method return old/cached data #77

Closed gladbhex closed 3 months ago

gladbhex commented 8 months ago

๐Ÿ‘Ÿ 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?

๐Ÿข Have you read the Code of Conduct?

stnguyen90 commented 8 months ago

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

stnguyen90 commented 3 months ago

Closing stale, inactive issue