AllenHK

Results comments of AllenHK

这是因为你的item.id的类型是整形,而selected里面的是字符串,类型不匹配,所以没有选中效果...源代码里面用到了 === 来做比较 ![screen shot 2017-08-08 at 7 59 40 pm](https://user-images.githubusercontent.com/3193216/29070992-3b9b815a-7c74-11e7-8b8a-b0aec1783f45.png)

@MrCuriosity 感谢回复,这是一个行之有效的方法,不过这样的话,我必须把表单的数据放到到全局的state中去,感觉稍微有点复杂,现在我的表单数据是通过payload传递过去的,我的困惑和这个问题https://github.com/redux-saga/redux-saga/issues/907 很像,我想知道有没有一种比较简单的方式,可以做到saga和Component之间传递信息?

@MrCuriosity 我认同你的理解,不过有时候都把应用状态都放在全局的话,会把问题复杂化,就好像loading这个状态,如果不是有dva-loading的话,处理起来也是挺麻烦的.. ![screen shot 2017-06-30 at 4 55 31 pm](https://user-images.githubusercontent.com/3193216/27728565-fbd75428-5db4-11e7-9e4f-ba23058010b2.png) 我现在暂时的做法是这样,虽然违反了单向数据流的思想,不过确实使问题简单化了,期待有更优雅的解决方案..

@zjxpcyc 请教一下,如何轻易解决?

@sorrycc https://github.com/redux-saga/redux-saga/issues/161 这个问题在saga项目也有挺多人讨论的。不知道有没有什么比较妥善的解决方案?

I have the same problem even I use VPN and I solved it by downloading the dependence manually. In conclusion, you should download realm-core-XXX.tar.xz and realm-sync-cocoa-${REALM_SYNC_VERSION}.tar.xz, then put them into...

@hey99xx thanks for your reply, I have found the reason on stackoverflow. It is the problem of cyclic-dependency. here is the link: http://stackoverflow.com/questions/29807664/cyclic-dependency-returns-empty-object-in-react-native