Unverified Commit e1d1fc65 authored by Wyatt Johnson's avatar Wyatt Johnson Committed by Hendrik Liebau

Add maximum size limit for postponed body parsing (#88175)

Adds a configurable `experimental.maxPostponedStateSize` limit for PPR
postponed state body parsing to prevent OOM/DoS attacks.

The postponed state body was read entirely without size limits, creating
a potential denial-of-service vector through unbounded memory
allocation.

Enforces a 10 MB default limit (configurable via next.config.js) with
byte counting during body parsing. Returns HTTP 413 when exceeded with a
helpful error message directing users to increase the limit if needed.

<!-- Closes NEXT- -->
<!-- Fixes # -->
parent 500ec837
...@@ -973,5 +973,7 @@ ...@@ -973,5 +973,7 @@
"972": "Failed to resolve pattern \"%s\": %s", "972": "Failed to resolve pattern \"%s\": %s",
"973": "Server Actions are not enabled for this application. This request might be from an older or newer deployment.\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action", "973": "Server Actions are not enabled for this application. This request might be from an older or newer deployment.\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action",
"974": "Failed to find Server Action%s. This request might be from an older or newer deployment.\\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action", "974": "Failed to find Server Action%s. This request might be from an older or newer deployment.\\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action",
"975": "Failed to find Server Action. This request might be from an older or newer deployment.\\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action" "975": "Failed to find Server Action. This request might be from an older or newer deployment.\\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action",
"976": "Decompressed resume data cache exceeded %s byte limit",
"977": "maxPostponedStateSize must be a valid number (bytes) or filesize format string (e.g., \"5mb\")"
} }
...@@ -56,6 +56,7 @@ import type { CacheControl } from '../../server/lib/cache-control' ...@@ -56,6 +56,7 @@ import type { CacheControl } from '../../server/lib/cache-control'
import { ENCODED_TAGS } from '../../server/stream-utils/encoded-tags' import { ENCODED_TAGS } from '../../server/stream-utils/encoded-tags'
import { sendRenderResult } from '../../server/send-payload' import { sendRenderResult } from '../../server/send-payload'
import { NoFallbackError } from '../../shared/lib/no-fallback-error.external' import { NoFallbackError } from '../../shared/lib/no-fallback-error.external'
import { parseMaxPostponedStateSize } from '../../shared/lib/size-limit'
// These are injected by the loader afterwards. // These are injected by the loader afterwards.
...@@ -593,6 +594,9 @@ export async function handler( ...@@ -593,6 +594,9 @@ export async function handler(
nextConfig.experimental.clientTraceMetadata || ([] as any), nextConfig.experimental.clientTraceMetadata || ([] as any),
clientParamParsingOrigins: clientParamParsingOrigins:
nextConfig.experimental.clientParamParsingOrigins, nextConfig.experimental.clientParamParsingOrigins,
maxPostponedStateSizeBytes: parseMaxPostponedStateSize(
nextConfig.experimental.maxPostponedStateSize
),
}, },
waitUntil: ctx.waitUntil, waitUntil: ctx.waitUntil,
......
...@@ -26,6 +26,7 @@ import { interopDefault } from '../../lib/interop-default' ...@@ -26,6 +26,7 @@ import { interopDefault } from '../../lib/interop-default'
import { normalizeAppPath } from '../../shared/lib/router/utils/app-paths' import { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'
import { checkIsOnDemandRevalidate } from '../../server/api-utils' import { checkIsOnDemandRevalidate } from '../../server/api-utils'
import { CloseController } from '../../server/web/web-on-close' import { CloseController } from '../../server/web/web-on-close'
import { parseMaxPostponedStateSize } from '../../shared/lib/size-limit'
declare const incrementalCacheHandler: any declare const incrementalCacheHandler: any
// OPTIONAL_IMPORT:incrementalCacheHandler // OPTIONAL_IMPORT:incrementalCacheHandler
...@@ -159,6 +160,9 @@ async function requestHandler( ...@@ -159,6 +160,9 @@ async function requestHandler(
nextConfig.experimental.clientTraceMetadata || ([] as any), nextConfig.experimental.clientTraceMetadata || ([] as any),
clientParamParsingOrigins: clientParamParsingOrigins:
nextConfig.experimental.clientParamParsingOrigins, nextConfig.experimental.clientParamParsingOrigins,
maxPostponedStateSizeBytes: parseMaxPostponedStateSize(
nextConfig.experimental.maxPostponedStateSize
),
}, },
incrementalCache: await pageRouteModule.getIncrementalCache( incrementalCache: await pageRouteModule.getIncrementalCache(
......
...@@ -46,6 +46,7 @@ import { ...@@ -46,6 +46,7 @@ import {
} from '../shared/lib/constants' } from '../shared/lib/constants'
import loadConfig from '../server/config' import loadConfig from '../server/config'
import type { ExportPathMap } from '../server/config-shared' import type { ExportPathMap } from '../server/config-shared'
import { parseMaxPostponedStateSize } from '../server/config-shared'
import { eventCliSession } from '../telemetry/events' import { eventCliSession } from '../telemetry/events'
import { hasNextSupport } from '../server/ci-info' import { hasNextSupport } from '../server/ci-info'
import { Telemetry } from '../telemetry/storage' import { Telemetry } from '../telemetry/storage'
...@@ -396,6 +397,9 @@ async function exportAppImpl( ...@@ -396,6 +397,9 @@ async function exportAppImpl(
dynamicOnHover: nextConfig.experimental.dynamicOnHover ?? false, dynamicOnHover: nextConfig.experimental.dynamicOnHover ?? false,
inlineCss: nextConfig.experimental.inlineCss ?? false, inlineCss: nextConfig.experimental.inlineCss ?? false,
authInterrupts: !!nextConfig.experimental.authInterrupts, authInterrupts: !!nextConfig.experimental.authInterrupts,
maxPostponedStateSizeBytes: parseMaxPostponedStateSize(
nextConfig.experimental.maxPostponedStateSize
),
}, },
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength, reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
hasReadableErrorStacks: hasReadableErrorStacks:
......
...@@ -385,7 +385,10 @@ export async function exportPages( ...@@ -385,7 +385,10 @@ export async function exportPages(
process.env.NODE_OPTIONS?.includes('--inspect') process.env.NODE_OPTIONS?.includes('--inspect')
const renderResumeDataCache = renderResumeDataCachesByPage[page] const renderResumeDataCache = renderResumeDataCachesByPage[page]
? createRenderResumeDataCache(renderResumeDataCachesByPage[page]) ? createRenderResumeDataCache(
renderResumeDataCachesByPage[page],
renderOpts.experimental.maxPostponedStateSizeBytes
)
: undefined : undefined
while (attempt < maxAttempts) { while (attempt < maxAttempts) {
......
...@@ -2371,7 +2371,8 @@ export const renderToHTMLOrFlight: AppPageRender = ( ...@@ -2371,7 +2371,8 @@ export const renderToHTMLOrFlight: AppPageRender = (
postponedState = parsePostponedState( postponedState = parsePostponedState(
renderOpts.postponed, renderOpts.postponed,
interpolatedParams interpolatedParams,
renderOpts.experimental.maxPostponedStateSizeBytes
) )
} else { } else {
interpolatedParams = interpolateParallelRouteParams( interpolatedParams = interpolateParallelRouteParams(
......
...@@ -51,7 +51,7 @@ describe('getDynamicHTMLPostponedState', () => { ...@@ -51,7 +51,7 @@ describe('getDynamicHTMLPostponedState', () => {
isCacheComponentsEnabled isCacheComponentsEnabled
) )
const parsed = parsePostponedState(state, { slug: '123' }) const parsed = parsePostponedState(state, { slug: '123' }, undefined)
expect(parsed).toMatchInlineSnapshot(` expect(parsed).toMatchInlineSnapshot(`
{ {
...@@ -109,7 +109,7 @@ describe('getDynamicHTMLPostponedState', () => { ...@@ -109,7 +109,7 @@ describe('getDynamicHTMLPostponedState', () => {
const value = 'hello' const value = 'hello'
const params = { slug: value } const params = { slug: value }
const parsed = parsePostponedState(state, params) const parsed = parsePostponedState(state, params, undefined)
expect(parsed).toEqual({ expect(parsed).toEqual({
type: DynamicState.HTML, type: DynamicState.HTML,
data: [1, { [value]: value }], data: [1, { [value]: value }],
...@@ -137,7 +137,7 @@ describe('parsePostponedState', () => { ...@@ -137,7 +137,7 @@ describe('parsePostponedState', () => {
const params = { const params = {
slug: Math.random().toString(16).slice(3), slug: Math.random().toString(16).slice(3),
} }
const parsed = parsePostponedState(state, params) const parsed = parsePostponedState(state, params, undefined)
// Ensure that it parsed it correctly. // Ensure that it parsed it correctly.
expect(parsed).toEqual({ expect(parsed).toEqual({
...@@ -153,7 +153,7 @@ describe('parsePostponedState', () => { ...@@ -153,7 +153,7 @@ describe('parsePostponedState', () => {
it('parses a HTML postponed state without fallback params', () => { it('parses a HTML postponed state without fallback params', () => {
const state = `2:{}null` const state = `2:{}null`
const params = {} const params = {}
const parsed = parsePostponedState(state, params) const parsed = parsePostponedState(state, params, undefined)
// Ensure that it parsed it correctly. // Ensure that it parsed it correctly.
expect(parsed).toEqual({ expect(parsed).toEqual({
...@@ -165,7 +165,7 @@ describe('parsePostponedState', () => { ...@@ -165,7 +165,7 @@ describe('parsePostponedState', () => {
it('parses a data postponed state', () => { it('parses a data postponed state', () => {
const state = '4:nullnull' const state = '4:nullnull'
const parsed = parsePostponedState(state, {}) const parsed = parsePostponedState(state, {}, undefined)
// Ensure that it parsed it correctly. // Ensure that it parsed it correctly.
expect(parsed).toEqual({ expect(parsed).toEqual({
......
...@@ -116,7 +116,8 @@ export async function getDynamicDataPostponedState( ...@@ -116,7 +116,8 @@ export async function getDynamicDataPostponedState(
export function parsePostponedState( export function parsePostponedState(
state: string, state: string,
interpolatedParams: Params interpolatedParams: Params,
maxPostponedStateSizeBytes: number | undefined
): PostponedState { ): PostponedState {
try { try {
const postponedStringLengthMatch = state.match(/^([0-9]*):/)?.[1] const postponedStringLengthMatch = state.match(/^([0-9]*):/)?.[1]
...@@ -134,7 +135,10 @@ export function parsePostponedState( ...@@ -134,7 +135,10 @@ export function parsePostponedState(
) )
const renderResumeDataCache = createRenderResumeDataCache( const renderResumeDataCache = createRenderResumeDataCache(
state.slice(postponedStringLengthMatch.length + postponedStringLength + 1) state.slice(
postponedStringLengthMatch.length + postponedStringLength + 1
),
maxPostponedStateSizeBytes
) )
try { try {
......
...@@ -158,6 +158,12 @@ export interface RenderOptsPartial { ...@@ -158,6 +158,12 @@ export interface RenderOptsPartial {
dynamicOnHover: boolean dynamicOnHover: boolean
inlineCss: boolean inlineCss: boolean
authInterrupts: boolean authInterrupts: boolean
/**
* The maximum size (in bytes) of the postponed state body for PPR resume
* requests. Used to calculate decompression limits (5x this value).
*/
maxPostponedStateSizeBytes: number | undefined
} }
postponed?: string postponed?: string
......
...@@ -6,6 +6,10 @@ import type { ...@@ -6,6 +6,10 @@ import type {
import type { MiddlewareRouteMatch } from '../shared/lib/router/utils/middleware-route-matcher' import type { MiddlewareRouteMatch } from '../shared/lib/router/utils/middleware-route-matcher'
import type { Params } from './request/params' import type { Params } from './request/params'
import type { NextConfig, NextConfigRuntime } from './config-shared' import type { NextConfig, NextConfigRuntime } from './config-shared'
import {
DEFAULT_MAX_POSTPONED_STATE_SIZE,
parseMaxPostponedStateSize,
} from './config-shared'
import type { import type {
NextParsedUrlQuery, NextParsedUrlQuery,
NextUrlWithParsedQuery, NextUrlWithParsedQuery,
...@@ -558,6 +562,9 @@ export default abstract class Server< ...@@ -558,6 +562,9 @@ export default abstract class Server<
dynamicOnHover: this.nextConfig.experimental.dynamicOnHover ?? false, dynamicOnHover: this.nextConfig.experimental.dynamicOnHover ?? false,
inlineCss: this.nextConfig.experimental.inlineCss ?? false, inlineCss: this.nextConfig.experimental.inlineCss ?? false,
authInterrupts: !!this.nextConfig.experimental.authInterrupts, authInterrupts: !!this.nextConfig.experimental.authInterrupts,
maxPostponedStateSizeBytes: parseMaxPostponedStateSize(
this.nextConfig.experimental.maxPostponedStateSize
),
}, },
onInstrumentationRequestError: onInstrumentationRequestError:
this.instrumentationOnRequestError.bind(this), this.instrumentationOnRequestError.bind(this),
...@@ -1049,11 +1056,34 @@ export default abstract class Server< ...@@ -1049,11 +1056,34 @@ export default abstract class Server<
req.headers[NEXT_RESUME_HEADER] === '1' && req.headers[NEXT_RESUME_HEADER] === '1' &&
req.method === 'POST' req.method === 'POST'
) { ) {
// Get the configured max postponed state size.
const maxPostponedStateSize =
this.nextConfig.experimental.maxPostponedStateSize ??
DEFAULT_MAX_POSTPONED_STATE_SIZE
const maxPostponedStateSizeBytes = parseMaxPostponedStateSize(
this.nextConfig.experimental.maxPostponedStateSize
)
if (maxPostponedStateSizeBytes === undefined) {
throw new Error(
'maxPostponedStateSize must be a valid number (bytes) or filesize format string (e.g., "5mb")'
)
}
// Decode the postponed state from the request body, it will come as // Decode the postponed state from the request body, it will come as
// an array of buffers, so collect them and then concat them to form // an array of buffers, so collect them and then concat them to form
// the string. // the string.
const body: Array<Buffer> = [] const body: Array<Buffer> = []
let size = 0
for await (const chunk of req.body) { for await (const chunk of req.body) {
size += Buffer.byteLength(chunk)
if (size > maxPostponedStateSizeBytes) {
res.statusCode = 413
const errorMessage =
`Postponed state exceeded ${maxPostponedStateSize} limit. ` +
`To configure the limit, see: https://nextjs.org/docs/app/api-reference/config/next-config-js/max-postponed-state-size`
res.body(errorMessage).send()
return
}
body.push(chunk) body.push(chunk)
} }
const postponed = Buffer.concat(body).toString('utf8') const postponed = Buffer.concat(body).toString('utf8')
......
...@@ -205,6 +205,7 @@ export const experimentalSchema = { ...@@ -205,6 +205,7 @@ export const experimentalSchema = {
allowedOrigins: z.array(z.string()).optional(), allowedOrigins: z.array(z.string()).optional(),
}) })
.optional(), .optional(),
maxPostponedStateSize: zSizeLimit.optional(),
// The original type was Record<string, any> // The original type was Record<string, any>
extensionAlias: z.record(z.string(), z.any()).optional(), extensionAlias: z.record(z.string(), z.any()).optional(),
externalDir: z.boolean().optional(), externalDir: z.boolean().optional(),
......
...@@ -646,6 +646,14 @@ export interface ExperimentalConfig { ...@@ -646,6 +646,14 @@ export interface ExperimentalConfig {
allowedOrigins?: string[] allowedOrigins?: string[]
} }
/**
* Allows adjusting the maximum size of the postponed state body for PPR
* resume requests. This includes the Resume Data Cache (RDC) which may grow
* large for some applications.
* @default '100 MB'
*/
maxPostponedStateSize?: SizeLimit
/** /**
* enables the minification of server code. * enables the minification of server code.
*/ */
...@@ -1671,6 +1679,7 @@ export interface NextConfigRuntime { ...@@ -1671,6 +1679,7 @@ export interface NextConfigRuntime {
| 'proxyTimeout' | 'proxyTimeout'
| 'testProxy' | 'testProxy'
| 'runtimeServerDeploymentId' | 'runtimeServerDeploymentId'
| 'maxPostponedStateSize'
> & { > & {
// Pick on @internal fields generates invalid .d.ts files // Pick on @internal fields generates invalid .d.ts files
/** @internal */ /** @internal */
...@@ -1731,6 +1740,7 @@ export function getNextConfigRuntime( ...@@ -1731,6 +1740,7 @@ export function getNextConfigRuntime(
proxyTimeout: ex.proxyTimeout, proxyTimeout: ex.proxyTimeout,
testProxy: ex.testProxy, testProxy: ex.testProxy,
runtimeServerDeploymentId: ex.runtimeServerDeploymentId, runtimeServerDeploymentId: ex.runtimeServerDeploymentId,
maxPostponedStateSize: ex.maxPostponedStateSize,
trustHostHeader: ex.trustHostHeader, trustHostHeader: ex.trustHostHeader,
isExperimentalCompile: ex.isExperimentalCompile, isExperimentalCompile: ex.isExperimentalCompile,
...@@ -1778,3 +1788,9 @@ export function getNextConfigRuntime( ...@@ -1778,3 +1788,9 @@ export function getNextConfigRuntime(
return runtimeConfig return runtimeConfig
} }
// Re-export from shared lib for backwards compatibility
export {
DEFAULT_MAX_POSTPONED_STATE_SIZE,
parseMaxPostponedStateSize,
} from '../shared/lib/size-limit'
...@@ -753,10 +753,18 @@ function assignDefaultsAndValidate( ...@@ -753,10 +753,18 @@ function assignDefaultsAndValidate(
if ( if (
typeof result.experimental?.serverActions?.bodySizeLimit !== 'undefined' typeof result.experimental?.serverActions?.bodySizeLimit !== 'undefined'
) { ) {
const value = parseInt( const bytes =
result.experimental.serverActions?.bodySizeLimit.toString() require('next/dist/compiled/bytes') as typeof import('next/dist/compiled/bytes')
) const bodySizeLimit = result.experimental.serverActions.bodySizeLimit
if (isNaN(value) || value < 1) { let value: number | null
if (typeof bodySizeLimit === 'number') {
value = bodySizeLimit
} else {
value = bytes.parse(bodySizeLimit)
}
if (value === null || isNaN(value) || value < 1) {
throw new Error( throw new Error(
'Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit' 'Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit'
) )
......
...@@ -125,7 +125,7 @@ describe('stringifyResumeDataCache', () => { ...@@ -125,7 +125,7 @@ describe('stringifyResumeDataCache', () => {
describe('parseResumeDataCache', () => { describe('parseResumeDataCache', () => {
it('parses an empty cache', () => { it('parses an empty cache', () => {
expect(createRenderResumeDataCache('null')).toEqual( expect(createRenderResumeDataCache('null', undefined)).toEqual(
createPrerenderResumeDataCache() createPrerenderResumeDataCache()
) )
}) })
...@@ -137,7 +137,7 @@ describe('parseResumeDataCache', () => { ...@@ -137,7 +137,7 @@ describe('parseResumeDataCache', () => {
isCacheComponentsEnabled isCacheComponentsEnabled
) )
const parsed = createRenderResumeDataCache(serialized) const parsed = createRenderResumeDataCache(serialized, undefined)
expect(parsed.cache.size).toBe(isCacheComponentsEnabled ? 1 : 3) expect(parsed.cache.size).toBe(isCacheComponentsEnabled ? 1 : 3)
expect(parsed.fetch.size).toBe(0) expect(parsed.fetch.size).toBe(0)
......
...@@ -164,6 +164,7 @@ export function createPrerenderResumeDataCache(): PrerenderResumeDataCache { ...@@ -164,6 +164,7 @@ export function createPrerenderResumeDataCache(): PrerenderResumeDataCache {
* @param renderResumeDataCache - A RenderResumeDataCache instance to be used directly * @param renderResumeDataCache - A RenderResumeDataCache instance to be used directly
* @param prerenderResumeDataCache - A PrerenderResumeDataCache instance to convert to immutable * @param prerenderResumeDataCache - A PrerenderResumeDataCache instance to convert to immutable
* @param persistedCache - A serialized cache string to parse * @param persistedCache - A serialized cache string to parse
* @param maxPostponedStateSizeBytes - The max compressed size limit in bytes (used to calculate 5x decompression limit)
* @returns An immutable RenderResumeDataCache instance * @returns An immutable RenderResumeDataCache instance
*/ */
export function createRenderResumeDataCache( export function createRenderResumeDataCache(
...@@ -173,13 +174,15 @@ export function createRenderResumeDataCache( ...@@ -173,13 +174,15 @@ export function createRenderResumeDataCache(
prerenderResumeDataCache: PrerenderResumeDataCache prerenderResumeDataCache: PrerenderResumeDataCache
): RenderResumeDataCache ): RenderResumeDataCache
export function createRenderResumeDataCache( export function createRenderResumeDataCache(
persistedCache: string persistedCache: string,
maxPostponedStateSizeBytes: number | undefined
): RenderResumeDataCache ): RenderResumeDataCache
export function createRenderResumeDataCache( export function createRenderResumeDataCache(
resumeDataCacheOrPersistedCache: resumeDataCacheOrPersistedCache:
| RenderResumeDataCache | RenderResumeDataCache
| PrerenderResumeDataCache | PrerenderResumeDataCache
| string | string,
maxPostponedStateSizeBytes?: number | undefined
): RenderResumeDataCache { ): RenderResumeDataCache {
if (process.env.NEXT_RUNTIME === 'edge') { if (process.env.NEXT_RUNTIME === 'edge') {
throw new InvariantError( throw new InvariantError(
...@@ -206,11 +209,32 @@ export function createRenderResumeDataCache( ...@@ -206,11 +209,32 @@ export function createRenderResumeDataCache(
// synchronous inflateSync function. // synchronous inflateSync function.
const { inflateSync } = require('node:zlib') as typeof import('node:zlib') const { inflateSync } = require('node:zlib') as typeof import('node:zlib')
const json: ResumeStoreSerialized = JSON.parse( // Limit decompressed size to prevent zipbomb attacks. This is 5x the
inflateSync( // configured maxPostponedStateSize, allowing reasonable compression
Buffer.from(resumeDataCacheOrPersistedCache, 'base64') // ratios while preventing extreme decompression bombs.
).toString('utf-8') // Default is 500MB (5x the default 100MB compressed limit).
) const maxDecompressedSize = maxPostponedStateSizeBytes
? maxPostponedStateSizeBytes * 5
: 500 * 1024 * 1024
let json: ResumeStoreSerialized
try {
json = JSON.parse(
inflateSync(Buffer.from(resumeDataCacheOrPersistedCache, 'base64'), {
maxOutputLength: maxDecompressedSize,
}).toString('utf-8')
)
} catch (err: unknown) {
if (
err instanceof RangeError &&
(err as NodeJS.ErrnoException).code === 'ERR_BUFFER_TOO_LARGE'
) {
throw new Error(
`Decompressed resume data cache exceeded ${maxDecompressedSize} byte limit`
)
}
throw err
}
return { return {
cache: parseUseCacheCacheStore(Object.entries(json.store.cache)), cache: parseUseCacheCacheStore(Object.entries(json.store.cache)),
......
import type { SizeLimit } from '../../types'
export const DEFAULT_MAX_POSTPONED_STATE_SIZE: SizeLimit = '100 MB'
function parseSizeLimit(size: SizeLimit): number | undefined {
const bytes = (
require('next/dist/compiled/bytes') as typeof import('next/dist/compiled/bytes')
).parse(size)
if (bytes === null || isNaN(bytes) || bytes < 1) {
return undefined
}
return bytes
}
/**
* Parses the maxPostponedStateSize config value, using the default if not provided.
*/
export function parseMaxPostponedStateSize(
size: SizeLimit | undefined
): number | undefined {
return parseSizeLimit(size ?? DEFAULT_MAX_POSTPONED_STATE_SIZE)
}
...@@ -1391,6 +1391,7 @@ function extractResumeDataCacheFromPostponedState( ...@@ -1391,6 +1391,7 @@ function extractResumeDataCacheFromPostponedState(
const postponedStringLength = parseInt(postponedStringLengthMatch) const postponedStringLength = parseInt(postponedStringLengthMatch)
return createRenderResumeDataCache( return createRenderResumeDataCache(
state.slice(postponedStringLengthMatch.length + postponedStringLength + 1) state.slice(postponedStringLengthMatch.length + postponedStringLength + 1),
undefined
) )
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment