联盟类型在流动型
答
的dispacth功能期待的动作,但没有确信这一行动有一个属性componentToSelect。 我应该先检查一下这个类型。
function dispatch(action: Action) {
if (action.type === 'SELECT')
console.log(action.componentToSelect);
}
查看它online
+0
github问题:https://github.com/facebook/flow/issues/3109 – locropulenton
那么,什么是你的问题? –
我得到一个错误,我正在调查我做错了什么,或者我应该如何解决这个问题。 – locropulenton