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

170
Vistas
Presentational - Container (or Smart - Dumb) component pattern with Vuex

How do you recommend to handle the Presentational - Container (or Smart - Dumb) component pattern with Vuex? Should the Presentational (or Dumb) components emit events to the parent or call Vuex actions? Imagine having a complex component structure where a Container (or Smart) component has many nested Presentational components. The nested event emission (eg, 4 levels) can be difficult to handle and requires a lot of repetitive code, but, on the other hand, a Presentational component that calls actions, does not seem very presentational to me. What about using an event bus? I know it is not recommended, and this is why I would like to read your recommendations.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I'd recommend not to overthink it:) I'd go for sending events from Presentational component if it's one level nesting. If it's more - call vuex action.

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