mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: properly clear data from memory on logout
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user