From 73732646d606d2ad73848b92a562f25ff957789b Mon Sep 17 00:00:00 2001 From: Josh Story Date: Sun, 15 Jan 2023 15:02:24 -0800 Subject: [PATCH] fix legacy DOM ResponseState type --- .../src/server/ReactDOMServerLegacyFormatConfig.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-dom-bindings/src/server/ReactDOMServerLegacyFormatConfig.js b/packages/react-dom-bindings/src/server/ReactDOMServerLegacyFormatConfig.js index 84dd47e706f94..cfc0d3140c435 100644 --- a/packages/react-dom-bindings/src/server/ReactDOMServerLegacyFormatConfig.js +++ b/packages/react-dom-bindings/src/server/ReactDOMServerLegacyFormatConfig.js @@ -44,6 +44,8 @@ export type ResponseState = { requiresEmbedding: boolean, rendered: DocumentStructureTag, flushed: DocumentStructureTag, + charsetChunks: Array, + hoistableChunks: Array, placeholderPrefix: PrecomputedChunk, segmentPrefix: PrecomputedChunk, boundaryPrefix: string, @@ -87,6 +89,8 @@ export function createResponseState( requiresEmbedding: false, rendered: NONE, flushed: NONE, + charsetChunks: [], + hoistableChunks: [], placeholderPrefix: responseState.placeholderPrefix, segmentPrefix: responseState.segmentPrefix, boundaryPrefix: responseState.boundaryPrefix,