-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can let emit return a Promise array?please #635
Comments
A similar issue was reported in 2.x long time ago vuejs/vue#5443 however, emit in vue 3 works differently than await props.onClick()
// or
// Promise.all expects an array
await Promise.all([
props.onClick()
]) |
Now that I think about it, simply returning an array containing the values of all triggered handlers would make sense. It'd be best to submit an RFC for this though: https://github.com/vuejs/rfcs |
FYI this has been removed in 55566e8 (see commit message for details) |
What problem does this feature solve?
That can do something after emit event。
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: