diff --git a/lib/runtime/Router/Router.js b/lib/runtime/Router/Router.js index d201ea07..f2fa325e 100644 --- a/lib/runtime/Router/Router.js +++ b/lib/runtime/Router/Router.js @@ -108,6 +108,11 @@ export class Router { (!this.pendingRoute.get() && this.activeRoute.get()) || next(this.activeRoute, x => !!x) + rendered = async () => { + await this.ready() + await this.activeRoute.get().rendered + } + /** @type {Map} */ history = new Map()