From caee136b6b8d46d521f365c3a8914609e954d073 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 2 Jan 2022 20:36:00 +0900 Subject: [PATCH] modify comment --- packages/client/src/pizzax.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pizzax.ts b/packages/client/src/pizzax.ts index 4fe53a8bb9..4bc3706e91 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 => {