MCPcopy
hub / github.com/facebook/react / createRequestImpl

Function createRequestImpl

packages/react-dom/src/server/ReactDOMFizzServerNode.js:104–133  ·  view source on GitHub ↗
(children: ReactNodeList, options: void | Options)

Source from the content-addressed store, hash-verified

102};
103
104function createRequestImpl(children: ReactNodeList, options: void | Options) {
105 const resumableState = createResumableState(
106 options ? options.identifierPrefix : undefined,
107 options ? options.unstable_externalRuntimeSrc : undefined,
108 options ? options.bootstrapScriptContent : undefined,
109 options ? options.bootstrapScripts : undefined,
110 options ? options.bootstrapModules : undefined,
111 );
112 return createRequest(
113 children,
114 resumableState,
115 createRenderState(
116 resumableState,
117 options ? options.nonce : undefined,
118 options ? options.unstable_externalRuntimeSrc : undefined,
119 options ? options.importMap : undefined,
120 options ? options.onHeaders : undefined,
121 options ? options.maxHeadersLength : undefined,
122 ),
123 createRootFormatContext(options ? options.namespaceURI : undefined),
124 options ? options.progressiveChunkSize : undefined,
125 options ? options.onError : undefined,
126 options ? options.onAllReady : undefined,
127 options ? options.onShellReady : undefined,
128 options ? options.onShellError : undefined,
129 undefined,
130 options ? options.onPostpone : undefined,
131 options ? options.formState : undefined,
132 );
133}
134
135function renderToPipeableStream(
136 children: ReactNodeList,

Callers 1

renderToPipeableStreamFunction · 0.85

Calls 4

createResumableStateFunction · 0.90
createRequestFunction · 0.90
createRenderStateFunction · 0.90
createRootFormatContextFunction · 0.90

Tested by

no test coverage detected