Skip to content

Commit

Permalink
feat: route.rendered promise
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Jun 20, 2024
1 parent 5a5b08b commit 1c1939d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/runtime/Route/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class Route {
this.fragments = this.router.transformFragments.run(this.allFragments)

this.url = this._createUrl()
this.rendered = Promise.all(this.fragments.map(f => f.renderContext))
this.log = router.log.createChild('[route]') // ROUTIFY-DEV-ONLY
this.log.debug('created', this) // ROUTIFY-DEV-ONLY
}
Expand Down

0 comments on commit 1c1939d

Please sign in to comment.