mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add a note on TilesCollection and diposing of tiles
This commit is contained in:
parent
28248722a3
commit
99a630fb84
@ -181,6 +181,8 @@ export class TilesCollection extends BaseObservableList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_replaceTile(tileIdx, existingTile, newTile, updateParams) {
|
_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();
|
existingTile.dispose();
|
||||||
const prevTile = this._getTileAtIdx(tileIdx - 1);
|
const prevTile = this._getTileAtIdx(tileIdx - 1);
|
||||||
const nextTile = this._getTileAtIdx(tileIdx + 1);
|
const nextTile = this._getTileAtIdx(tileIdx + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user