Skip to content

Commit 6e83668

Browse files
authored
fix(rsc): pass temporary references options on rsc render (#150)
1 parent 9c1e1c0 commit 6e83668

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

unstable_rsc-parcel/src/entry.rsc.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ function fetchServer(request: Request) {
2929
// The app routes.
3030
routes: routes(),
3131
// Encode the match with the React Server implementation.
32-
generateResponse(match) {
33-
return new Response(renderToReadableStream(match.payload), {
32+
generateResponse(match, options) {
33+
return new Response(renderToReadableStream(match.payload, options), {
3434
status: match.statusCode,
3535
headers: match.headers,
3636
});

unstable_rsc-vite/src/entry.rsc.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ function fetchServer(request: Request) {
2323
// The app routes.
2424
routes: routes(),
2525
// Encode the match with the React Server implementation.
26-
generateResponse(match) {
27-
return new Response(renderToReadableStream(match.payload), {
26+
generateResponse(match, options) {
27+
return new Response(renderToReadableStream(match.payload, options), {
2828
status: match.statusCode,
2929
headers: match.headers,
3030
});

0 commit comments

Comments
 (0)