From 418d936044d5eba18cfad575b561372aac97b94d Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 5 Jan 2022 01:25:34 +0900 Subject: [PATCH] add comment --- packages/client/src/pizzax.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/client/src/pizzax.ts b/packages/client/src/pizzax.ts index 51b5cd40d..a4c54ccd5 100644 --- a/packages/client/src/pizzax.ts +++ b/packages/client/src/pizzax.ts @@ -91,6 +91,8 @@ export class Storage { } this.pizzaxChannel.addEventListener('message', ({ where, key, value, userId }) => { + // アカウント変更すればunisonReloadが効くため、このreturnが発火することは + // まずないと思うけど一応弾いておく if (where === 'deviceAccount' && !($i && userId !== $i.id)) return; this.state[key] = value; this.reactiveState[key].value = value;