Is my collection empty because of offline, or remote empty


#1

When I grab my data from a collection with CollectionName.find(), if I haven’t properly set my subscription, or if the user has the code but no remote connection (like in Cordova), what’s the best way to determine whether an empty result is due to no connection, vs because the remote is empty?


#2

See: https://docs.meteor.com/api/connections.html#Meteor-status for the connection.

And https://guide.meteor.com/ui-ux.html#subscription-readiness to check whether the subscription is ready.