Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Oct 20, 2024
1 parent 809322c commit f6af606
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 @@ -226,14 +226,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 f6af606

Please sign in to comment.