Flow: react-redux intersection error message

Created on 12 Dec 2016  路  2Comments  路  Source: facebook/flow

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.

Most helpful comment

You were right, this error is raised because I didn't annotate the dispatch parameter in mapDispatchToProps definition. Nevermind !
Thanks

All 2 comments

  1. Your question cannot be answered without more context. There's probably a bug in your mapDispatchToProps definition.
  2. This repository contains the implementation of flow itself. For questions regarding definitions try flowtype/flow-typed or stackoverflow with flowtype tag.

You were right, this error is raised because I didn't annotate the dispatch parameter in mapDispatchToProps definition. Nevermind !
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebmck picture sebmck  路  113Comments

gcanti picture gcanti  路  48Comments

vjpr picture vjpr  路  55Comments

sophiebits picture sophiebits  路  66Comments

Macil picture Macil  路  186Comments