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

137
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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