Skip to content

Commit 7ce5cb5

Browse files
linting
1 parent 572dc4d commit 7ce5cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node_package/src/serverRenderReactComponent.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ReactDOMServer from 'react-dom/server';
2-
import { PassThrough, Readable, Transform } from 'stream';
2+
import { PassThrough, Readable } from 'stream';
33
import type { ReactElement } from 'react';
44

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

0 commit comments

Comments
 (0)