Ant Design Mobile"s ListView drop-down refresh component DataSource, has two codes that you don"t understand. Please explain to me:
Code screenshot:
Ant Design Mobile:
https://antd-mobile.gitee.io/...
question:
1. What is the function of rowHasChanged in the first red box?
const dataSource = new ListView.DataSource({
rowHasChanged: (row1, row2) => row1 !== row2,
});
2. In the second red box, it seems that this.state.dataSource
is an object. What are the properties and methods in it?
dataSource: this.state.dataSource.cloneWithRows(genData()),