Guys, it´s been a while since I last edited my website. I suddenly noticed that static event handlers have been deprecated, they have now been made dynamic. Old ones still work, but you can´t declare new ones, so Velo generates, for e.g. a button code like this:
$w(‘#btnSomeName’).onClick((event) => {
Problem was, I used to declare async function in the static event handler (for things like waiting for input, user clicks button to calculate price, BUTTON IS GREYED OUT, data is sent to backend, calculation is done, backend sends result to frontend, button is enabled again.)
To make the generated code async again, just add async, like so:
$w(‘#btnSomeName’).onClick(async (event) => {