slot forwarding with v-for causing issues in SSR #13233
Unanswered
prabhuj94
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team i have a wrapper component which pass down slots from parent to child.
My code structure is same as one mentioned here, Link to vue Js playground
During server rendering the page, the slots are not rendered.
But instead of using v-for in Slotwrapper if i explicitly pass down the slots like below its working fine,
<template v-if="$slots.label" v-slot:label> <slot name="label"></slot> </template>
Is there a way to make this work in Vue 3, In vue 2 it was working fine.
Beta Was this translation helpful? Give feedback.
All reactions