DEV Community


Discussion on: I'm a Meteor developer, Ask Me Anything!

guidouil profile image
Guidouil ツ Ask Me Anything

you should stop using bindEnvironment and use async and await
Like this :

But if you really need a bindEnvirinment here is one of mine old code

const newSurveyFromMail = Meteor.bindEnvironment((senderMail, senderName, event) => {'newSurveyFromMail', senderMail, senderName, event);
  return true;

and inside the non fiber code you call this function with parameters

cmrickels profile image
Colin Rickels

awesome thank you