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

153
Views
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
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!