fix: properly clear data from memory on logout

This commit is contained in:
thecodrr
2020-09-19 11:33:31 +05:00
parent 0e3682450c
commit 2aa0fa592c
5 changed files with 19 additions and 3 deletions

View File

@@ -14,8 +14,9 @@ export default class CachedCollection {
if (data.length > 0) this.map = new Map(data);
}
clear() {
async clear() {
this.map.clear();
await this.indexer.clear();
}
/**