DEV Community

loading...

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

Collapse
dougajmcdonald profile image
Doug McDonald

I've been advocating this in all projects we have using Redux. Did discover a nasty issue the other day though where circular references in your modules can cause imported action creators / thunks to be undefined when passing to the shorthand. Using the older function syntax works around this problem.