DEV Community

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

Collapse
 
skydevht profile image
Holy-Elie Scaïde

I've started with that method (I was using the redux-actions library to create my action creators), but reverted to the old method while using rematch as the action creators will be children of dispatch. from

connect(null, {
  increment
})

it becomes this

connect(null, ({ Counter: { increment }}) => ({
  increment
}))