Is it possible to do that ?
I've asked for so much help here, I hope I can finally be of use to someone.
.evaluate((var1, var2) => {
// Do stuff here
}, var1, var2)
You have to make sure to include the variables like above after the function {}.
Let me know if that's what you're trying to accomplish.
Thanks @miles-collier, I'm going to close this for the time being with this: make sure your arguments are serializeable as this goes through a to a different runtime
Most helpful comment
I've asked for so much help here, I hope I can finally be of use to someone.
You have to make sure to include the variables like above after the function {}.
Let me know if that's what you're trying to accomplish.