tab 页面里是这样写的:
componentDidMount () {
this.index();
}
render () {
const { issue: { collection } } = this.props;
return (
<View className='index'>
<List collection={ collection }/>
</View>
)
}
index 请求接口了也正常返回数据了,没有 render, 但是刷新页面反而 render 了。第一次进入 Tab 页,nextState 变了没有 render,不知道啥原因?