fix(api-remotes): await namespace assembly startup

This commit is contained in:
imccyu
2026-08-07 21:47:18 +08:00
parent 5c2625c26e
commit 14ea7e134d
+3 -2
View File
@@ -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)
}