Просмотр исходного кода

fix(api-remotes): await namespace assembly startup

imccyu 1 месяц назад
Родитель
Сommit
14ea7e134d
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/api/remotes/src/client/index.ts

+ 3 - 2
packages/api/remotes/src/client/index.ts

@@ -20,7 +20,8 @@ export const inject = ['remote']
 /**
  * Mount the Host capabilities explicitly selected for this Client assembly.
  * @param ctx - Client Cordis root carrying the typed API service.
+ * @returns disposer after every selected Remote namespace is ready.
  */
-export function apply(ctx: Context): Promise<() => Promise<void>> {
-  return ctx.remote.$mount(goalsRemote)
+export async function apply(ctx: Context): Promise<() => Promise<void>> {
+  return await ctx.remote.$mount(goalsRemote)
 }