Преглед изворни кода

fix(api-remotes): await namespace assembly startup

imccyu пре 1 месец
родитељ
комит
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)
 }