Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Aug 29, 2024
1 parent 572dc4d commit 7ce5cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_package/src/serverRenderReactComponent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ReactDOMServer from 'react-dom/server';
import { PassThrough, Readable, Transform } from 'stream';
import { PassThrough, Readable } from 'stream';
import type { ReactElement } from 'react';

import ComponentRegistry from './ComponentRegistry';
Expand Down Expand Up @@ -236,7 +236,7 @@ See https://github.com/shakacode/react_on_rails#renderer-functions`);
isShellReady = true;
renderingStream.pipe(transformStream);
},
onError(_) {
onError() {
// Can't through error here if throwJsErrors is true because the error will happen inside the stream
// And will not be handled by any catch clause
hasErrors = true;
Expand Down

0 comments on commit 7ce5cb5

Please sign in to comment.