ariadys
ariadys
Thanks @tanutapi , but I have a problem.. i've listen to the collection in initState but if the app is opened it has a few seconds delay to receive data....
``` void initState() { super.initState(); meteor.collection('locations').listen((data) { storeList = data.values.toList(); isLoading = false; }); } ``` isLoading still true..
Sure, ``` class ProductPotrait extends StatefulWidget { ProductPotrait({Key? key}) : super(key: key); @override _ProductPotraitState createState() => _ProductPotraitState(); } class _ProductPotraitState extends State { late SubscriptionHandler _subscriptionHandler; bool isLoading = true;...
ah, maybe I like solution number 2, coz number 1 will triggered memory leak
how about 2 collection listen? @tanutapi ``` meteor.collection('category').listen((data) { setState(() { category = data.values.toList(); }); }); meteor.collection('locations').listen((data) { if(category.length > 0){ setState(() { storeList = data.values.toList(); }); } }); ```
Yap already running example: `wss://test.com/websocket`
Hi @tanutapi , this issue still appear. you have any solution?
@tanutapi your email? want send endpoint privately
maybe you can dm me on discord LazyTurtle#5764 , i will show you how this happen