Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
553052f9
Unverified
Commit
553052f9
authored
Nov 13, 2019
by
Joe Haddad
Committed by
GitHub
Nov 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused property `skeleton` (#9393)
parent
4c2c4533
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
index.js
packages/next/client/index.js
+1
-1
utils.ts
packages/next/next-server/lib/utils.ts
+0
-1
render.tsx
packages/next/next-server/server/render.tsx
+0
-3
No files found.
packages/next/client/index.js
View file @
553052f9
...
...
@@ -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
(
...
...
packages/next/next-server/lib/utils.ts
View file @
553052f9
...
...
@@ -72,7 +72,6 @@ export type NEXT_DATA = {
runtimeConfig
?:
{
[
key
:
string
]:
any
}
nextExport
?:
boolean
autoExport
?:
boolean
skeleton
?:
boolean
dynamicIds
?:
string
[]
err
?:
Error
&
{
statusCode
?:
number
}
}
...
...
packages/next/next-server/server/render.tsx
View file @
553052f9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment