Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

155
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda