• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

298
Vistas
Calling another function after getting response from API (Axios using vue)

I am calling an API with Axios using vue store and mapAction. I also have one function to call, but only after the API responds. But the function is being called before the API responds.

...mapActions("functionCall", ["functionName"]),
  async refresh() {

    await this.functionName()
    this.test()

  },
  test(){
    console.log('not working well....')
  },
about 3 years ago · Juan Pablo Isaza
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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda