DEV Community

loading...

Discussion on: You've been doing mapDispatchToProps wrong this entire time

Collapse
thekashey profile image
Anton Korzunov

In this case actions you might emit would not a part of component’a public interface (aka props).
Giving ‘dispatch’ and letting component do whatever it wants - might not be a good idea.