You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run and check empty slots for Custom Element/Web Component
What is expected?
Some way of accessing slots programmatically
What is actually happening?
Impossible to access slots programmatically
System Info
No response
Any additional comments?
I have decided to open another issue regarding this behaviour, because I couldn't find any solution to this problem and all related issues are closed.
I have also re-used the stackblitz example of below mentioned issue, because the reproduction code is still valid.
I was not able to successfully access the props with any of those suggestions in the comments.
Furthermore they all sound like a workaround and not a solution to this problem, in my opinion.
I could also not find any new internal API which is providing this in the docs, maybe there is already something which I was not able to find?
Thanks & BR
The text was updated successfully, but these errors were encountered:
I understood that comment in a way, that the same API (useSlots) can not be used, but a new one would make more sense.
So I would imagine e.g. something like useNativeSlots would be possible (just my naive assumption, I have no clue about Vue internals).
Vue version
3.4.10
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-xycchc?file=src%2FApp.vue
Steps to reproduce
Run and check empty slots for Custom Element/Web Component
What is expected?
Some way of accessing slots programmatically
What is actually happening?
Impossible to access slots programmatically
System Info
No response
Any additional comments?
I have decided to open another issue regarding this behaviour, because I couldn't find any solution to this problem and all related issues are closed.
I have also re-used the stackblitz example of below mentioned issue, because the reproduction code is still valid.
Related issues I have found:
useSlots()
and$slots
return an empty object #8734I was not able to successfully access the props with any of those suggestions in the comments.
Furthermore they all sound like a workaround and not a solution to this problem, in my opinion.
I could also not find any new internal API which is providing this in the docs, maybe there is already something which I was not able to find?
Thanks & BR
The text was updated successfully, but these errors were encountered: