notesComputed.deleteをやめる
This commit is contained in:
parent
d8692e399b
commit
e238ffb431
|
|
@ -107,14 +107,6 @@ export class NoteManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public set(_note: Note): void {
|
public set(_note: Note): void {
|
||||||
if (this.updatedAt.has(_note.id)) {
|
|
||||||
if (this.updatedAt.get(_note.id)! + 100 > Date.now()) {
|
|
||||||
if (this.isDebuggerEnabled) console.log('NoteManager: set ignore', _note.id);
|
|
||||||
// 100ms以内に更新されたノートは無視(computedが壊れるので)
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const note: Note = { ..._note };
|
const note: Note = { ..._note };
|
||||||
|
|
||||||
userLiteManager.set(note.user);
|
userLiteManager.set(note.user);
|
||||||
|
|
@ -443,10 +435,11 @@ export class NoteManager {
|
||||||
this.captureing.delete(id);
|
this.captureing.delete(id);
|
||||||
|
|
||||||
// キャプチャが終わったらcomputedキャッシュも消してしまう
|
// キャプチャが終わったらcomputedキャッシュも消してしまう
|
||||||
if (!noDeletion) {
|
//if (!noDeletion) {
|
||||||
this.notesComputed.delete(id);
|
// this.notesComputed.delete(id);
|
||||||
if (this.isDebuggerEnabled) console.log('NoteManager: decapture (delete computed)', id);
|
// if (this.isDebuggerEnabled) console.log('NoteManager: decapture (delete computed)', id);
|
||||||
}
|
//}
|
||||||
|
// と思ったが、computedキャッシュを消すと壊れるのでやめる
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue