MCPcopy Index your code
hub / github.com/react/react / writePostamble

Function writePostamble

packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js:5690–5700  ·  view source on GitHub ↗
(
  destination: Destination,
  resumableState: ResumableState,
)

Source from the content-addressed store, hash-verified

5688}
5689
5690export function writePostamble(
5691 destination: Destination,
5692 resumableState: ResumableState,
5693): void {
5694 if (resumableState.hasBody) {
5695 writeChunk(destination, endChunkForTag('body'));
5696 }
5697 if (resumableState.hasHtml) {
5698 writeChunk(destination, endChunkForTag('html'));
5699 }
5700}
5701
5702const arrayFirstOpenBracket = stringToPrecomputedChunk('[');
5703const arraySubsequentOpenBracket = stringToPrecomputedChunk(',[');

Callers 1

flushCompletedQueuesFunction · 0.90

Calls 2

writeChunkFunction · 0.90
endChunkForTagFunction · 0.85

Tested by

no test coverage detected