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

309
Views
mounted is being shared across instances of a component Vue.js

I have multiple instances of a component being rendered, not at the same time, if you open up a different container, another instance gets rendered. The first instance rendered gets the mounted() triggered but all the other instances don't and they share the same results of that mounted call. How do I separate them? I tried doing "@Watch('prop')" but the first instance of the component doesn't get that method called, since prop hasn't changed.

@Prop() assignee!: Person;

accountName = '';

data(): any {
return {
accountName: '',
}
}

async mounted(): Promise<void> {
this.accountName = ...;
}

so accountName is the same for different instances of the component, since the mounted call didn't get triggered.

about 4 years ago · Juan Pablo Isaza
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!