Add a note on TilesCollection and diposing of tiles

This commit is contained in:
Danila Fedorin 2021-07-29 10:46:17 -07:00
parent 28248722a3
commit 99a630fb84

View file

@ -181,6 +181,8 @@ export class TilesCollection extends BaseObservableList {
}
_replaceTile(tileIdx, existingTile, newTile, updateParams) {
// TODO What happens with a tile that's being replied to? Can we have
// reference counting of some sort?
existingTile.dispose();
const prevTile = this._getTileAtIdx(tileIdx - 1);
const nextTile = this._getTileAtIdx(tileIdx + 1);