Render a slot by name from a passed object as functional component #8895
Unanswered
PurpleTape
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm trying to make a functional component whose only task is to render a slot by name from a passed object.
When implementing the component, I tested various use cases and came across the fact that when my component is used inside the
v-for
list, the reactivity of the list element is lost.At the same time, the standard
<slot/>
retains reactivity in such cases.Here is an example of my code: https://play.vuejs.org/#eNq9VlFv2zYQ/is3...
Please tell me what I could have missed when implementing the component, what caused this situation?
I am grateful in advance for exploring my question!
Beta Was this translation helpful? Give feedback.
All reactions