This commit is contained in:
parent
fe56d1361c
commit
588679f4bc
|
|
@ -107,10 +107,10 @@ export class NoteManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public set(_note: Note): void {
|
public set(_note: Note): void {
|
||||||
if (this.updatedAt.has(_note.id) && this.notesSource.value.has(_note.id)) {
|
if (this.updatedAt.has(_note.id)) {
|
||||||
if (this.updatedAt.get(_note.id)! + 100 > Date.now()) {
|
if (this.updatedAt.get(_note.id)! + 100 > Date.now()) {
|
||||||
if (this.isDebuggerEnabled) console.log('NoteManager: set ignore', _note.id);
|
if (this.isDebuggerEnabled) console.log('NoteManager: set ignore', _note.id);
|
||||||
// 100ms以内に更新されたノートは無視
|
// 100ms以内に更新されたノートは無視(computedが壊れるので)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue