Error handling 流错误:无法调用对象绑定到操作的分派
无法调用对象文本绑定到Error handling 流错误:无法调用对象绑定到操作的分派,error-handling,react-redux,yarnpkg,flowtype,redux-thunk,Error Handling,React Redux,Yarnpkg,Flowtype,Redux Thunk,无法调用对象文本绑定到connectOptions的explicitConnect,因为ThunkAction[1]与属性mapDispatchToProps.updatePreviewSelection返回值中的未定义[2]不兼容 有人能帮我吗?我的thunkAction不起作用,它告诉我它绑定到我的connectOptions,以下是我的代码: import {typeof user} from ../../filename; type dispatch { +user: typeof U
connectOptions
的explicitConnect
,因为ThunkAction
[1]与属性mapDispatchToProps.updatePreviewSelection
返回值中的未定义[2]不兼容
有人能帮我吗?我的thunkAction不起作用,它告诉我它绑定到我的connectOptions,以下是我的代码:
import {typeof user} from ../../filename;
type dispatch {
+user: typeof User,
}
return (
<Chart
Props={{
user
}}
/>
)
export const graph = explicitConnect<{||}, state, dispatch>({
mapstate: state => ({
timerange: gecommittedrange(state),
}),
mapdispatch: {
};
options: { forwardRef: true },
component: graphipl,
});
从.././filename导入{typeof user};
类型分派{
+用户:用户类型,
}
返回(
)
导出常量图=显式连接({
mapstate:state=>({
时间范围:gecommittedrange(州),
}),
mapdispatch:{
};
选项:{forwardRef:true},
组成部分:graphipl,
});