Reputation: 43
I have a peculiar issue, When I call a meteor method on the frontend, Meteor executes and returns the method but my frontend doesn't execute the callback, but It only happens on my production app, on locally the same code works and executes the callback.
At this point, the issue will be maybe optimization but, Is not, because I add some console.time
to my backend and the execution time is even faster than my local meteor instance, in 100ms the return method is called, in local is like 500ms.
Example: frontend
Meteor.call("method1", (err, res) => {
console.log("Done :)")
})
backend
Meteor.methods({method1() {
console.time("test")
// do something
console.timeEnd("test")
return true
}
})
Upvotes: 0
Views: 54