Issue returning data from my callback function

Hi all,

I’m working with Meteor methods and I’m having an issue with getting the returned value of the method when it isn’t returned by the server immediately. I’ve created an example in MeteorPad which you can look at here. Once there’s any kind of delay on method returning on the server, the client receives an undefined response instantly. As far as I can tell I’m doing everything correctly and I’ve been looking far and wide for a fix for this. Any ideas?


This may help you out

Thanks, that should help.

Does it really need to be that complicated? Everything I’ve read made it seem like that functionality is built in to Meteor methods, or am I understanding it wrong?

1 Like

I tried out Futures and that did it. It’s not too much more complicated either.

Thank you!!