File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
packages/plugin-rsc/examples Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import * as ReactClient from '@vitejs/plugin-rsc/browser'
2- import { rscStream } from 'rsc-html-stream/client'
32import React from 'react'
43import ReactDomClient from 'react-dom/client'
4+ import { rscStream } from 'rsc-html-stream/client'
55import { RSC_POSTFIX , type RscPayload } from './shared'
66
77async function hydrate ( ) : Promise < void > {
Original file line number Diff line number Diff line change 1- import { injectRSCPayload } from 'rsc-html-stream/server'
21import * as ReactClient from '@vitejs/plugin-rsc/ssr'
32import React from 'react'
43import * as ReactDomServer from 'react-dom/server.edge'
4+ import { injectRSCPayload } from 'rsc-html-stream/server'
55import type { RscPayload } from './shared'
66
77export async function renderHtml ( rscStream : ReadableStream < Uint8Array > ) {
Original file line number Diff line number Diff line change 11import * as ReactClient from '@vitejs/plugin-rsc/browser'
2- import { rscStream } from 'rsc-html-stream/client'
32import React from 'react'
43import * as ReactDOMClient from 'react-dom/client'
4+ import { rscStream } from 'rsc-html-stream/client'
55import type { RscPayload } from './entry.rsc'
66
77async function main ( ) {
You can’t perform that action at this time.
0 commit comments