Unverified Commit 553052f9 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Remove unused property `skeleton` (#9393)

parent 4c2c4533
......@@ -102,7 +102,7 @@ class Container extends React.Component {
// If it's a dynamic route or has a querystring
if (
data.nextExport &&
(isDynamicRoute(router.pathname) || location.search || data.skeleton)
(isDynamicRoute(router.pathname) || location.search)
) {
// update query on mount for exported pages
router.replace(
......
......@@ -72,7 +72,6 @@ export type NEXT_DATA = {
runtimeConfig?: { [key: string]: any }
nextExport?: boolean
autoExport?: boolean
skeleton?: boolean
dynamicIds?: string[]
err?: Error & { statusCode?: number }
}
......
......@@ -136,7 +136,6 @@ type RenderOpts = {
err?: Error | null
autoExport?: boolean
nextExport?: boolean
skeleton?: boolean
dev?: boolean
ampMode?: any
ampPath?: string
......@@ -175,7 +174,6 @@ function renderDocument(
runtimeConfig,
nextExport,
autoExport,
skeleton,
dynamicImportsIds,
dangerousAsPath,
hasCssMode,
......@@ -229,7 +227,6 @@ function renderDocument(
runtimeConfig, // runtimeConfig if provided, otherwise don't sent in the resulting HTML
nextExport, // If this is a page exported by `next export`
autoExport, // If this is an auto exported page
skeleton, // If this is a skeleton page for experimentalPrerender
dynamicIds:
dynamicImportsIds.length === 0 ? undefined : dynamicImportsIds,
err: err ? serializeError(dev, err) : undefined, // Error if one happened, otherwise don't sent in the resulting HTML
......
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