#emit don't work after await in async function
4 messages · Page 1 of 1 (latest)
4 messages · Page 1 of 1 (latest)
It seems that emit don't work after await (useAsyncData) in async function. However, sometimes it may work. Have you ever encountered this phenomenon? Does the component hierarchy or some other factor prevent it from working?
If you know, please let me know.
BTW, I use <script setup> .
did u put emit in onMounted hook?
I don't put emit in onMounted. However, my component use slot. I'm not sure why but emit work when I don't use slot 🤔