Open semeano opened 7 years ago
Is it possible to make an Ajax call and wait for the response before render (on server-side)?
Basically I want to do something like this:
FlowRouter.route('/bazinga', { name: 'bazinga', action() { if (Meteor.isServer) { getData(query, function callback(data) { mount(...); } } } });
Any help would be appreciated. Thanks.
Is it possible to make an Ajax call and wait for the response before render (on server-side)?
Basically I want to do something like this:
Any help would be appreciated. Thanks.