Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

168
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda