diff --git a/packages/plugin-rsc/examples/starter/src/framework/entry.ssr.tsx b/packages/plugin-rsc/examples/starter/src/framework/entry.ssr.tsx index 129dbadf1..a74efe72f 100644 --- a/packages/plugin-rsc/examples/starter/src/framework/entry.ssr.tsx +++ b/packages/plugin-rsc/examples/starter/src/framework/entry.ssr.tsx @@ -35,18 +35,22 @@ export async function renderHTML( ? undefined : bootstrapScriptContent, nonce: options?.nonce, + // signal: undefined, // no types ...{ formState: options?.formState }, }) let responseStream: ReadableStream = htmlStream if (!options?.debugNojs) { + console.log('[responseStream.pipeThrough:before]') // initial RSC stream is injected in HTML stream as responseStream = responseStream.pipeThrough( injectRscStreamToHtml(rscStream2, { nonce: options?.nonce, }), ) + console.log('[responseStream.pipeThrough:after]') + // responseStream.cancel() } return responseStream diff --git a/packages/plugin-rsc/examples/starter/src/root.tsx b/packages/plugin-rsc/examples/starter/src/root.tsx index a42c6a92a..62db76600 100644 --- a/packages/plugin-rsc/examples/starter/src/root.tsx +++ b/packages/plugin-rsc/examples/starter/src/root.tsx @@ -3,6 +3,7 @@ import viteLogo from '/vite.svg' import { getServerCounter, updateServerCounter } from './action.tsx' import reactLogo from './assets/react.svg' import { ClientCounter } from './client.tsx' +import React from 'react' export function Root() { return ( @@ -43,6 +44,7 @@ function App() { +