From 9a648624d387ba46335c6a768fce454bebab8689 Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Wed, 16 Oct 2024 17:55:19 +0200 Subject: [PATCH] Restore `router.resolveComponent()` method --- packages/core/src/router.ts | 5 +++++ 1 file changed, 5 insertions(+) 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, {