Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Oct 15, 2024
1 parent 29e7943 commit e67efaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node_package/src/serverRenderReactComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ export const streamServerRenderedReactComponent = (options: RenderParams): Reada
renderResult = renderStream;

// TODO: Add console replay script to the stream
// Ensure to avoid console messages leaking between different components rendering
} catch (e: any) {
} catch (e) {
if (throwJsErrors) {
throw e;
}

const error = e instanceof Error ? e : new Error(String(e));
renderResult = stringToStream(handleError({
e,
e: error,
name: componentName,
serverSide: true,
}));
Expand Down

0 comments on commit e67efaf

Please sign in to comment.