Skip to content

Commit

Permalink
Await renderListener callback
Browse files Browse the repository at this point in the history
  • Loading branch information
TjeuKayim committed Sep 16, 2021
1 parent c2cd051 commit 979742c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/aleph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ export class Aleph implements IAleph {
async #renderPage(url: RouterURL, nestedModules: string[]): Promise<[string, Record<string, SSRData> | null]> {
let [html, data] = await this.#renderer.renderPage(url, nestedModules)
for (const callback of this.#renderListeners) {
callback({ path: url.toString(), html, data })
await callback({ path: url.toString(), html, data })
}
return [buildHtml(html, !this.isDev), data]
}
Expand Down

0 comments on commit 979742c

Please sign in to comment.