Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 68ae617

Browse files
authored
Await renderListener callback (#393)
1 parent 2f26d7e commit 68ae617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/aleph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ export class Aleph implements IAleph {
644644
async #renderPage(url: RouterURL, nestedModules: string[]): Promise<[string, Record<string, SSRData> | null]> {
645645
let [html, data] = await this.#renderer.renderPage(url, nestedModules)
646646
for (const callback of this.#renderListeners) {
647-
callback({ path: url.toString(), html, data })
647+
await callback({ path: url.toString(), html, data })
648648
}
649649
return [buildHtml(html, !this.isDev), data]
650650
}

0 commit comments

Comments
 (0)