Hello,
I'm using flow v0.36 with flow-typed and react/react-redux, and I'm encountering a strange flow error :
function call Function cannot be called on any member of intersection type of intersection
This occurs when I connect my component :
export default connect(null, mapDispatchToProps)(MyComponent)
Is a react-redux definition error ? Or maybe something I wrote ?
Thanks.
mapDispatchToProps definition.flowtype tag.You were right, this error is raised because I didn't annotate the dispatch parameter in mapDispatchToProps definition. Nevermind !
Thanks
Most helpful comment
You were right, this error is raised because I didn't annotate the dispatch parameter in
mapDispatchToPropsdefinition. Nevermind !Thanks