Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

154
Vistas
Vue 3 Typescript watcher not responding after passing prop through two components

I've got three components in my vue 3 app (using typescript and the composition api)

I'm reading a string value in the first component passing it throught a modal (2nd component) to a 3rd one. Now the property gets to the 2nd component without an issue and I can read it there use it in a ref or whatever. When passing the prop further to the 3rd component the watcher for that prop is not reacting to changes.

When I print the prop via another watcher I can see that its value is changing as I intended but the watcher does not react at all

Watcher code looks like this and I'm just passing props through the other components normally but this watcher is not reacting to changes.

const { myprop } = toRefs(props);
watch(myprop, (val: string) => {
      output.value = val;
    });

Thanks in advance for your time and help :)

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda