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

141
Views
Is it possible to rely on computed-properties-mapped-getter-values inside a created block in a Vue instance?

Would like to know if - by the time - accessing a computed property which get its value from the store - inside a created block - I can be sure that the computed value is already initiated.

async created(){
  !this.apps.length && await this.loadApps();
},
computed: {
  ...mapGetters('apps-store', ['apps']),
},
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Hooks are just functions that get fired on proper times - they are announcement not middleware. So, async hook does not wait to being fulfilled. You should provide a default value for the app getter __ either in the getter function or its state.

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!