I'm making requests to Parse.com to 3 different objects that are needed to render a View. I'd like to know what's the general/best approach in cases like these in which there are multiple requests before actually handling the data.
Code:
var Parse = require('parse-api').Parse;
var parse = new Parse();
exports.single = function() {
parse.find('Class_1',params1,function(error,response1){
parse.find('Class_2',params2,function(error, response2){
parse.find('Class_3',params3,function(error3, response3){
// handle responses....
// render view....
})
})
})
}
Thanks!