I use CombineLatestStream.list to combine a set of ValueStream and observe that the AsyncSnapshot.connectionState changes alot between waiting and active.
Should it not show waiting untill values from all streams are present, and then change to active?
Pass initialData into StreamBuilder
final stream$ = Rx.combineLatest([...]).shareValueSeeded(seeded);
StreamBuilder(
stream: stream$,
initialData: stream$.value,
builder: ...
)
Ok, thanks. I will try that later.
But i could just rather check for snapshot.data != null ?
Snapshot.data ( a list ) is only not null when it has values from all streams?
Just shareValueSeeded(null), and in builder
List<...> data = snapshot.data;
if (data == null) return Loading();
return ListView(data);
Most helpful comment
Pass
initialDataintoStreamBuilder