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

350
Views
El componente de transición Vue 3 con <slot> hijo arroja un error

Creé un componente personalizado que me permite aplicar una transición de desvanecimiento sin tener que escribir siempre el componente <transition> :

 <transition mode="out-in" enter-active-class="transition-opacity ease-out" enter-from-class="opacity-0" enter-to-class="opacity-100" leave-active-class="transition-opacity ease-in" leave-from-class="opacity-100" leave-to-class="opacity-0" > <slot /> </transition>

Pero cuando lo uso en algún lugar como:

 <FadingTransition> <div v-show="!isSearchFocused"> ... </div> </FadingTransition>

Obtuve el siguiente error:

 [Vue warn]: Hydration node mismatch: - Client vnode: div - Server rendered DOM: <!--[--> (start of fragment) at <BaseTransition mode="out-in" appear=false persisted=false ... > at <Transition mode="out-in" enter-active-class="transition-opacity ease-out duration-75" enter-from-class="opacity-0" ... > at <FadingTransition> at <BaseTransition mode="out-in" appear=false persisted=false ... > at <Transition mode="out-in" enter-active-class="ease-out duration-75" enter-from-class="transform -translate-y-1 opacity-0" ... > at <SearchBar> at <Header> at <App> Hydration completed but contains mismatches.

¿Cómo puedo arreglarlo?

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

0

No puedo decirlo con certeza, pero podría ser un problema usarlo dentro de su propio componente. Puede intentar usar <transition name="fadingtransition"> y luego almacenar los estilos de transición en un archivo CSS separado.

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!