100ms以内に更新されたノートは無視をやめる

This commit is contained in:
tamaina 2023-08-11 15:45:55 +00:00
parent be75cf20de
commit 451b2ad26f
1 changed files with 0 additions and 8 deletions

View File

@ -107,14 +107,6 @@ export class NoteManager {
}
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 };
userLiteManager.set(note.user);