Skip to content

Commit 93a8754

Browse files
remove RSCRoots and replace its test with registerServerComponent tests
1 parent 0a36833 commit 93a8754

File tree

5 files changed

+254
-253
lines changed

5 files changed

+254
-253
lines changed

node_package/src/RSCClientRoot.tsx

Lines changed: 0 additions & 67 deletions
This file was deleted.

node_package/src/RSCServerRoot.tsx

Lines changed: 0 additions & 32 deletions
This file was deleted.

node_package/src/getReactServerComponent.client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ const createRSCStreamFromArray = (payloads: string[]) => {
4545
};
4646

4747
payloads.forEach(handleChunk);
48-
const originalPush = payloads.push;
4948
// eslint-disable-next-line no-param-reassign
5049
payloads.push = (...chunks) => {
5150
chunks.forEach(handleChunk);
52-
return originalPush.call(payloads, ...chunks);
51+
return chunks.length;
5352
};
5453
streamController = controller;
5554
},

node_package/tests/RSCClientRoot.test.jsx

Lines changed: 0 additions & 152 deletions
This file was deleted.

0 commit comments

Comments
 (0)