Higher Order Component redux dispatch being overwritten by wrapped component redux dispatch
It looks like you have an issue with your example.
function withExtraStuff (InnerComponent) {
return class Enhancer extends React.Component {/* ... */}
// ...
return connect(/* ... */)(Enhancer)
}
You're return
ing twice from your HOC, so your Enhancer
is never connect
ed.
Is this just a typo in your example? Or do you have this same issue in your code? Because that would indeed cause the issue you're seeing.