@@ -294,7 +294,7 @@ type ResumeOptions = {
294294function resumeAndPrerenderToNodeStream (
295295 children : ReactNodeList ,
296296 postponedState : PostponedState ,
297- options ?: ResumeOptions ,
297+ options ?: Omit < ResumeOptions , 'nonce' > ,
298298) : Promise < StaticResult > {
299299 return new Promise ( ( resolve , reject ) => {
300300 const onFatalError = reject ;
@@ -316,10 +316,7 @@ function resumeAndPrerenderToNodeStream(
316316 const request = resumeAndPrerenderRequest (
317317 children ,
318318 postponedState ,
319- resumeRenderState (
320- postponedState . resumableState ,
321- options ? options . nonce : undefined ,
322- ) ,
319+ resumeRenderState ( postponedState . resumableState , undefined ) ,
323320 options ? options . onError : undefined ,
324321 onAllReady ,
325322 undefined ,
@@ -346,7 +343,7 @@ function resumeAndPrerenderToNodeStream(
346343function resumeAndPrerender (
347344 children : ReactNodeList ,
348345 postponedState : PostponedState ,
349- options ? : ResumeOptions ,
346+ options ? : Omit < ResumeOptions , 'nonce' > ,
350347) : Promise < {
351348 postponed : null | PostponedState ,
352349 prelude : ReadableStream ,
@@ -385,10 +382,7 @@ function resumeAndPrerender(
385382 const request = resumeAndPrerenderRequest (
386383 children ,
387384 postponedState ,
388- resumeRenderState (
389- postponedState . resumableState ,
390- options ? options . nonce : undefined ,
391- ) ,
385+ resumeRenderState ( postponedState . resumableState , undefined ) ,
392386 options ? options . onError : undefined ,
393387 onAllReady ,
394388 undefined ,
0 commit comments