From 69057b5787dfc2a3c251da13a12a831c9b020880 Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 30 Dec 2021 02:30:24 +0900 Subject: [PATCH] add debug 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 1a48dc0a2..de3924da1 100644 --- a/packages/client/src/pizzax.ts +++ b/packages/client/src/pizzax.ts @@ -125,6 +125,7 @@ export class Storage { this.reactiveState[key].value = rawValue; return this.addIdbSetJob(async () => { + if (_DEV_) console.log(`set ${key} start`); switch (this.def[key].where) { case 'device': { const deviceState = await get(this.deviceStateKeyName) || {}; @@ -152,6 +153,7 @@ export class Storage { break; } } + if (_DEV_) console.log(`set ${key} complete`); }); }