From cb6d38713f77b346c7a6bf656d39a89be798da4d Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 4 Jan 2022 13:35:30 +0900 Subject: [PATCH] test --- packages/client/src/pizzax.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pizzax.ts b/packages/client/src/pizzax.ts index 4bc3706e9..a0c9a1bad 100644 --- a/packages/client/src/pizzax.ts +++ b/packages/client/src/pizzax.ts @@ -2,6 +2,7 @@ import { onUnmounted, Ref, ref, watch } from 'vue'; import { $i } from './account'; import { api } from './os'; import { get, set } from './scripts/idb-proxy'; +import { defaultStore } from './store'; import { stream } from './stream'; type StateDef = Record { } } - private async load(): Promise { + private load(): Promise { return new Promise((resolve, reject) => { if ($i) { // api関数と循環参照なので一応setTimeoutしておく - setTimeout(() => { + setTimeout(async () => { + await defaultStore.ready; + api('i/registry/get-all', { scope: ['client', this.key] }) .then(kvs => { const cache = {};