add debug comment
This commit is contained in:
parent
14e74beba1
commit
69057b5787
|
@ -125,6 +125,7 @@ export class Storage<T extends StateDef> {
|
||||||
this.reactiveState[key].value = rawValue;
|
this.reactiveState[key].value = rawValue;
|
||||||
|
|
||||||
return this.addIdbSetJob(async () => {
|
return this.addIdbSetJob(async () => {
|
||||||
|
if (_DEV_) console.log(`set ${key} start`);
|
||||||
switch (this.def[key].where) {
|
switch (this.def[key].where) {
|
||||||
case 'device': {
|
case 'device': {
|
||||||
const deviceState = await get(this.deviceStateKeyName) || {};
|
const deviceState = await get(this.deviceStateKeyName) || {};
|
||||||
|
@ -152,6 +153,7 @@ export class Storage<T extends StateDef> {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (_DEV_) console.log(`set ${key} complete`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue