fix(api-remotes): await namespace assembly startup
This commit is contained in:
@@ -20,7 +20,8 @@ export const inject = ['remote']
|
|||||||
/**
|
/**
|
||||||
* Mount the Host capabilities explicitly selected for this Client assembly.
|
* Mount the Host capabilities explicitly selected for this Client assembly.
|
||||||
* @param ctx - Client Cordis root carrying the typed API service.
|
* @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>> {
|
export async function apply(ctx: Context): Promise<() => Promise<void>> {
|
||||||
return ctx.remote.$mount(goalsRemote)
|
return await ctx.remote.$mount(goalsRemote)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user