diff --git a/packages/client/client/plugins/router.ts b/packages/client/client/plugins/router.ts index 5ea1b92..c098490 100644 --- a/packages/client/client/plugins/router.ts +++ b/packages/client/client/plugins/router.ts @@ -17,7 +17,7 @@ declare module '../context' { interface Context { $router: RouterService slot(options: SlotOptions): () => void - page(options: Activity.Options): () => void + page(options: Activity.Options): Activity } interface Events { @@ -166,8 +166,7 @@ export default class RouterService extends Service { const caller = this[Context.current] options.component = caller.wrapComponent(options.component) return caller.effect(() => { - const activity = new Activity(caller, options) - return () => activity.dispose() + return new Activity(caller, options) }) } } diff --git a/plugins/manager/client/components/forks.vue b/plugins/manager/client/components/forks.vue index 55f8bb3..19524f4 100644 --- a/plugins/manager/client/components/forks.vue +++ b/plugins/manager/client/components/forks.vue @@ -1,16 +1,16 @@