Flutter Riverpod Streamprovider with Firebase Document Listener
I have written a riverpod stream provider in flutter, which should wait after successful authentication of the user until the user document exists. if this exists, the document should be read out and the data parsed. however, I have a problem with implementing a possibility that waits for the data. I have already tried it with a listener on the firebase document, but I can’t get the data out of the listener and therefore can’t return it. since I am not so experienced with such use cases, I don’t know how I can prepare this data in such a way that I end up with the following facts.
Flutter firestore keeps returning old value from database
I am using flutter / riverpod and debugging my app by manually changing the data in firestore. But my changes are not being reflected in my IOS simulator app? I keep getting the old value or state that was previously stored in the field?
Flutter firestore keeps returning old value from database
I am using flutter / riverpod and debugging my app by manually changing the data in firestore. But my changes are not being reflected in my IOS simulator app? I keep getting the old value or state that was previously stored in the field?