Skip to content

Commit 8a19f3c

Browse files
linting
1 parent 64d8163 commit 8a19f3c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/react-on-rails-pro/src/RSCRequestTracker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ class RSCRequestTracker {
113113
// Validate that the generateRSCPayload function is available
114114
if (!this.generateRSCPayload) {
115115
throw new Error(
116-
'generateRSCPayload is not defined. Please ensure that you are using at least version 4.0.0 of ' +
117-
'React on Rails Pro and the Node renderer, and that ReactOnRailsPro.configuration.enable_rsc_support ' +
118-
'is set to true.',
116+
'generateRSCPayload function is not available. This could mean: ' +
117+
'(1) ReactOnRailsPro.configuration.enable_rsc_support is not enabled, or ' +
118+
'(2) You are using an incompatible version of React on Rails Pro (requires 4.0.0+).',
119119
);
120120
}
121121

packages/react-on-rails/src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export type ItemRegistrationCallback<T> = (component: T) => void;
219219
export type GenerateRSCPayloadFunction = (
220220
componentName: string,
221221
props: unknown,
222-
railsContext: RailsContext,
222+
railsContext: RailsContextWithServerComponentMetadata,
223223
) => Promise<NodeJS.ReadableStream>;
224224

225225
interface Params {

react_on_rails_pro/packages/node-renderer/tests/incrementalHtmlStreaming.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import http2 from 'http2';
2-
import * as fs from 'fs';
32
import buildApp from '../src/worker';
43
import { createTestConfig } from './testingNodeRendererConfigs';
54
import * as errorReporter from '../src/shared/errorReporter';

0 commit comments

Comments
 (0)