diff --git a/packages/client/src/pizzax.ts b/packages/client/src/pizzax.ts index 4fe53a8bb..4bc3706e9 100644 --- a/packages/client/src/pizzax.ts +++ b/packages/client/src/pizzax.ts @@ -98,7 +98,7 @@ export class Storage { private async load(): Promise { return new Promise((resolve, reject) => { if ($i) { - // なぜかsetTimeoutしないとapi関数内でエラーになる(おそらく循環参照してることに原因がありそう) + // api関数と循環参照なので一応setTimeoutしておく setTimeout(() => { api('i/registry/get-all', { scope: ['client', this.key] }) .then(kvs => {