DEV Community

loading...

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

Collapse
guidouil profile image
Guidouil ツ Ask Me Anything

you should stop using bindEnvironment and use async and await
Like this : github.com/guidouil/TorrentsDuck/b...

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

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

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

Collapse
cmrickels profile image
Colin Rickels

awesome thank you