@@ -17,7 +17,10 @@ import type {
17
17
FormatContext ,
18
18
} from 'react-dom-bindings/src/server/ReactFizzConfigDOM' ;
19
19
20
- import { pushStartInstance as pushStartInstanceImpl } from 'react-dom-bindings/src/server/ReactFizzConfigDOM' ;
20
+ import {
21
+ pushStartInstance as pushStartInstanceImpl ,
22
+ writePreambleStart as writePreambleStartImpl ,
23
+ } from 'react-dom-bindings/src/server/ReactFizzConfigDOM' ;
21
24
22
25
import type {
23
26
Destination ,
@@ -62,13 +65,11 @@ export {
62
65
writeEndPendingSuspenseBoundary ,
63
66
writeHoistablesForBoundary ,
64
67
writePlaceholder ,
65
- writeCompletedRoot ,
66
68
createRootFormatContext ,
67
69
createRenderState ,
68
70
createResumableState ,
69
71
createPreambleState ,
70
72
createHoistableState ,
71
- writePreambleStart ,
72
73
writePreambleEnd ,
73
74
writeHoistables ,
74
75
writePostamble ,
@@ -203,5 +204,30 @@ export function writeEndClientRenderedSuspenseBoundary(
203
204
return true ;
204
205
}
205
206
207
+ export function writePreambleStart (
208
+ destination : Destination ,
209
+ resumableState : ResumableState ,
210
+ renderState : RenderState ,
211
+ willFlushAllSegments : boolean ,
212
+ skipExpect ?: boolean , // Used as an override by ReactFizzConfigMarkup
213
+ ) : void {
214
+ return writePreambleStartImpl (
215
+ destination ,
216
+ resumableState ,
217
+ renderState ,
218
+ willFlushAllSegments ,
219
+ true , // skipExpect
220
+ ) ;
221
+ }
222
+
223
+ export function writeCompletedRoot (
224
+ destination : Destination ,
225
+ resumableState : ResumableState ,
226
+ renderState : RenderState ,
227
+ ) : boolean {
228
+ // Markup doesn't have any bootstrap scripts nor shell completions.
229
+ return true ;
230
+ }
231
+
206
232
export type TransitionStatus = FormStatus ;
207
233
export const NotPendingTransition : TransitionStatus = NotPending ;
0 commit comments