I am using a StreamBuilder
to build my widget. But database.listDocuments()
only returns a Future
. Is there a way to get a stream of documents which automatically triggers a widget rebuild on a database update just as with Firebase's snapshots()
stream?
Asked
Active
Viewed 614 times
1

Frank van Puffelen
- 565,676
- 79
- 828
- 807

Noodles
- 3,888
- 2
- 20
- 31
-
nope, it seems that `Stream`s are not supported – pskink Jul 11 '21 at 04:30
-
1Hey @FrankvanPuffelen, I'm Damodar from Appwrite team 1. The Appwrite database in stable version (0.9) doesn't yet support realtime capability so there is no way to get stream there, you can use FutureBuilder and use it along with some kind of state management solution to make it work 2. As mentioned in the answer by Noodles below, realtime support is in preview version learn more about it here https://www.notion.so/Appwrite-Realtime-Sneak-Peek-c4ea0dd20d184701abe06389fc2aea01 – dlohani Jul 12 '21 at 05:58
-
That sounds like a perfect answer @dlohani! – Frank van Puffelen Jul 12 '21 at 06:05