Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

240
Views
Problema de SSR y keep-alive en Vue 3: componente dinámico
<template> <div class="default-layout"> <router-view v-slot="{ index }"> <keep-alive> <component :is="index" :key="route.fullPath" /> </keep-alive> </router-view> </div> </template> <script lang="ts"> import { defineComponent} from "vue"; import { useRoute } from "vue-router"; import Index from "@/pages/index"; export default defineComponent({ name: "app", components: { Index, }, setup: () => { const route = useRoute(); return { route, index: Index }; }, }); </script>

Dará lugar a un error al renderizar:Mensaje de error

 [Vue warn]: Hydration node mismatch: - Client vnode: Symbol(Comment) - Server rendered DOM: <!--[--> (start of fragment) at <KeepAlive> at <RouterView key=0 > at <App> Hydration children mismatch in <div>: server rendered element contains fewer child nodes than client vdom. Hydration completed but contains mismatches.

¿Qué debo hacer para solucionar este problema?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Creo que esto es un error. Puede seguirlo en https://github.com/vuejs/vue-next/issues/4817

En el momento de escribir este artículo, los mantenedores de Vue aún no lo habían confirmado.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!