Hello, in my app, which is a twitter clone, what I do is I post a tweet and also I listen to realtime to get my latest tweet inside of my app feeds.
I setup the real time using riverpod's streamProvider and I use ref.watch to listen to it. So, when I post a tweet I get multiple instances of my tweet but when I restart the app everything is okay, only one instance of the tweet is shown.
There's a bug with realtime and subscribing multiple times: https://github.com/appwrite/sdk-for-flutter/issues/156
As a reminder, please make sure to search previous <#1072905050399191082> posts before posting.
Thankyou, sure I will.
There is a solution to,to prior adding new tweet to old tweets, first check if it was added earlier from previous realtime subscription. As of my expeirence we get four events when we subscribe to realtime, and as a result Document (Tweet in your case) is added multiple times to List (Builder).
You can clear your concept from this snippet
Thankyou @Hassanmrwt , I will check it out soon 🙂
Recommended threads
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...