When I try to make a couple of request one after the other (2-3 seconds in between the requests) (Go back and forward between screens in my iOS app (Fetch method called in ViewDidAppear)). The first request correctly returns data, but the second request doesn’t.
I am fetching my data with the following method:
Backendless.sharedInstance().data.of(Group).find({ (objects) in
guard let someGroups = objects.data as? [Group] where someGroups.count > 0 else {
return
}
self.groups = someGroups
self.tableView.reloadData()
}) { (error) -> Void in
// MARK: Show Error
}
How would I manage to fix this?