fix(api-remotes): await namespace assembly startup

This commit is contained in:
imccyu
2026-08-07 20:02:12 +08:00
parent 5c2625c26e
commit 14ea7e134d

View File

@@ -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)
} }