diff --git a/packages/client/src/pizzax.ts b/packages/client/src/pizzax.ts index 543450e07..8ee1e5575 100644 --- a/packages/client/src/pizzax.ts +++ b/packages/client/src/pizzax.ts @@ -30,7 +30,7 @@ export class Storage<T extends StateDef> { public readonly state = {} as State<T>; public readonly reactiveState = {} as ReactiveState<T>; - // indexedDB保存を重複させないために簡易的にキューイング + // 簡易的にキューイングして占有ロックとする private nextIdbJob: Promise<any> = Promise.resolve(); private addIdbSetJob<T>(job: () => Promise<T>) { const promise = this.nextIdbJob.then(job, e => {