(or cloneWithRowsAndSections if you care about sections). The data in the data source is immutable, so you can't modify it directly. The clone methods suck in the new data and compute a diff for each row so ListView knows whether to re-render it or not.
(or cloneWithRowsAndSections if you care about sections). The data in the data source is immutable, so you can't modify it directly. The clone methods suck in the new data and compute a diff for each row so ListView knows whether to re-render it or not. datasource を更新するときは cloneWithRows か cloneWithRowsAndSections を呼んでね。 datasource の中にあるデータは変えられないけど、この clone メソッドでデータを読み取って、差分を計算の 上、再描画するかどうか決めます。 訳した