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

Function onAllReady

packages/react-dom/src/server/ReactDOMFizzStaticNode.js:130–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 const onFatalError = reject;
129
130 function onAllReady() {
131 const readable: Readable = new Readable({
132 read() {
133 startFlowing(request, writable);
134 },
135 });
136 const writable = createFakeWritableFromReadable(readable);
137
138 const result: StaticResult =
139 enablePostpone || enableHalt
140 ? {
141 postponed: getPostponedState(request),
142 prelude: readable,
143 }
144 : ({
145 prelude: readable,
146 }: any);
147 resolve(result);
148 }
149 const resumableState = createResumableState(
150 options ? options.identifierPrefix : undefined,
151 options ? options.unstable_externalRuntimeSrc : undefined,

Callers

nothing calls this directly

Calls 7

getPostponedStateFunction · 0.90
startFlowingFunction · 0.90
stopFlowingFunction · 0.90
abortFunction · 0.90
resolveFunction · 0.50

Tested by

no test coverage detected