-
Description 📖The What you see is the following error message in the console:
Screenshots 📷 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
This happens because the island does not include Use plain |
Beta Was this translation helpful? Give feedback.
-
Hi Máximo, thanks for your answer. The problem with plain Is there a way to have a client:none sfc inside a client:load sfc? That would be a solution for me, too. |
Beta Was this translation helpful? Give feedback.
-
@mseele Since <template>
<ExampleIsland :data="data" client:load>
<router-link to="/" exactActiveClass="text-red-500">Home</router-link>
</ExampleIsland>
</template> Have in mind that the content passed to islands using slots will be pre-rendered at build time as static HTML (no JS to hydrate it or re-render it), but in most cases that should be enough. You can also used named slots if needed. |
Beta Was this translation helpful? Give feedback.
-
@ElMassimo Thanks. I go with the named slots to have more static html and less js :) |
Beta Was this translation helpful? Give feedback.
@mseele Since
vue-router
would not be available in the production bundle, a workaround is to passrouter-link
to islands using slots:Have in mind that the content passed to islands using slots will be pre-rendered at build time as static HTML (no JS to hydrate it or re-render it), but in most cases that should be enough. You can also used named slots if needed.