Changing component scope variables in async function #1263
-
Sorry for posting another question so soon 😅 I'm trying to change a variable depending on the result of a Consider my
And my
I'm able to initialise Is there a specific way to do this I'm not understanding? Is it because EDIT:
If I call this directly from a button it works, but if I call it from my asynchronous function it doesn't. 🤷♂️ EDIT2:
Nada Codesandbox example: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out the only problem was the way I was using |
Beta Was this translation helpful? Give feedback.
Turns out the only problem was the way I was using
x-init
. Switched tox-init="init()"
and it worked.