【发布时间】:2019-02-12 07:27:26
【问题描述】:
使用 react-redux 更改了添加到组件的 DispatchProps 的函数的实现,我收到以下错误:
yarn run v1.13.0
$ flow
Cannot call this.props.<prop> because:
• Either property <prop> is missing in ExternalProps [1].
• Or property <prop> is missing in ConnectProps [2].
然而,prop 是DispatchProps 的一部分;与上述道具相交:type Props = ExternalProps & ConnectProps & DispatchProps.
【问题讨论】:
标签: javascript reactjs redux flowtype