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

167
Views
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 answers
Answer question

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