File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
playground/ssr-react-streaming Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function TestSuspense() {
4848// use weak map to suspend for each server render
4949const sleepPromiseMap = new WeakMap < object , Promise < void > > ( )
5050
51- function Sleep ( props : { context : { } } ) {
51+ function Sleep ( props : { context : object } ) {
5252 if ( typeof document !== 'undefined' ) {
5353 return < div > suspense-resolved</ div >
5454 }
Original file line number Diff line number Diff line change 11import path from 'node:path'
2- import { defineConfig , Manifest } from 'vite'
3- import react from '@vitejs/plugin-react'
42import fs from 'node:fs'
3+ import type { Manifest } from 'vite'
4+ import { defineConfig } from 'vite'
5+ import react from '@vitejs/plugin-react'
56
67const CLIENT_ENTRY = path . join ( import . meta. dirname , 'src/entry-client.jsx' )
78const SERVER_ENTRY = path . join ( import . meta. dirname , 'src/entry-server.jsx' )
You can’t perform that action at this time.
0 commit comments