Skip to content
Discussion options

You must be logged in to vote

An async function returns a promise which breaks alpine since it needs a standard object for the scope. I never tried if it works for x-data but you can try to use await in the directive: https://alpinejs.dev/advanced/async

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@matthiasstorr
Comment options

Answer selected by matthiasstorr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants