如果在我的代码中有这个简单的定义: <SectionList renderSectionHeaderelement `SectionList` (This type is incompatible with See also: React element `SectionList`)flow-bin: 0.56.0
目前,我正在使用redux来获取一个对象数组,操作该数据以匹配SectionList数据reqs,并将其提供给SectionList部分支柱。在RenderItem中,我使用FlatList并输入项目支持sections.data。最后,renderItem in FLatList是一个PureComponent。我尝试过使用shouldComponentUpdate,以及其他人推荐的许多其他支持,但似乎都没有用。SectionList一致地呈现项3次或更多次。这是我的密码:
// S