diff --git a/packages/core/src/router.ts b/packages/core/src/router.ts index 75aa2b118..4d8608053 100644 --- a/packages/core/src/router.ts +++ b/packages/core/src/router.ts @@ -11,6 +11,7 @@ import { RequestStream } from './requestStream' import { Scroll } from './scroll' import { ActiveVisit, + Component, GlobalEvent, GlobalEventNames, GlobalEventResult, @@ -231,6 +232,10 @@ export class Router { return history.decrypt() } + public resolveComponent(component: string): Promise { + return currentPage.resolve(component) + } + protected getPrefetchParams(href: string | URL, options: VisitOptions): ActiveVisit { return { ...this.getPendingVisit(href, {