项目中对于转发文本(@XXX)点击可跳转
同一页面普通跳转不能实现,需添加key做标识
let add = clubInfoByNameState.forwardNav +1;
let forwardNav = add +'';
this.props.navigation.navigate({routeName:'ClubInfoListPage',params:{clubData: clubInfoByNameState.result,forwardNav:forwardNav},key:clubInfoByNameState.result.cid + forwardNav});
使用forwardNav来对每次跳转进行加一 使key不同
但同一界面收到请求成功回调后需加不同处理
if (queryClubTotalInfoState.status === CLUB_QUERY_TOTAL_INFO_SUCCESS && queryClubTotalInfoState.forwardNav === forward) {
使用queryClubTotalInfoState.forwardNav === forward来控制何时完成数据加载
所以需要在请求前做处理
const {clubData,forwardNav} = this.props.navigation.state.params;
this.props.queryClubTotalInfoForward(forwardNav ? forwardNav : 0);
this.props.queryClubTotalInfoRequest(clubData.cid, {