From 2d0d87c8c0734ebe9fcb522af7e23979053d2eca Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 6 Aug 2023 16:33:17 +0000 Subject: [PATCH] add comment --- packages/frontend/src/scripts/entity-manager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index b3542aac4b..a191fedbad 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -306,6 +306,10 @@ export class NoteManager { if (this.isDebuggerEnabled) console.log('NoteManager: onStreamNoteUpdated (found)', id, note.value, { type, id, body }); } + /** + * note.valueを直接いじるとcomputedが更新されない場合があるため、 + * diffで上書きする形で更新する + */ const diff: Partial = {}; switch (type) {