Skip to content

Commit

Permalink
Update core-libs/setup/ssr/engine/cx-common-engine.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Krzysztof Platis <[email protected]>
  • Loading branch information
pawelfras and Platonn authored Apr 26, 2024
1 parent f3fa5cd commit 0440661
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions core-libs/setup/ssr/engine/cx-common-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ export class CxCommonEngine extends CommonEngine {
}

/**
* Renders the given options and handles any server error response.
* If an error response exists, it will be thrown after the rendering is complete.
* @override
* Renders for the given options.
* If a server error response object is populated from the rendered applications
* (via `PROPAGATE_SERVER_ERROR_RESPONSE` callback), then such an error
* will be thrown and the result promise rejected - but only AFTER the rendering is complete.
*
* @param {CommonEngineRenderOptions} options - The options to render.
* @returns {Promise<string>} The rendered HTML as a string.
* @throws {CxServerErrorResponse} The server error response, if one occurred during rendering.
* @returns {Promise<string>} Promise which resolves with the rendered HTML as a string
* OR rejects with the server error response object, if any is propagated from the rendered app.
*/
async render(options: CommonEngineRenderOptions): Promise<string> {
return super
Expand Down

0 comments on commit 0440661

Please sign in to comment.