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
cd1a2fbd
Unverified
Commit
cd1a2fbd
authored
May 29, 2018
by
Tim Neutkens
Committed by
GitHub
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check for added/deleted pages (#4497)
parent
8cbc0be8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hot-reloader.js
server/hot-reloader.js
+3
-3
No files found.
server/hot-reloader.js
View file @
cd1a2fbd
...
...
@@ -190,9 +190,9 @@ export default class HotReloader {
changedPageRoutes
.
push
(
route
)
}
// This means `/_app` is most likely included in the list.
//
We filter it out because `/_app` will be re-rendered with the page
if
(
changedPageRoutes
.
length
>
1
)
{
// This means `/_app` is most likely included in the list
, or a page was added/deleted in this compilation run
.
//
This means we should filter out `/_app` because `/_app` will be re-rendered with the page reload.
if
(
added
.
size
!==
0
||
removed
.
size
!==
0
||
changedPageRoutes
.
length
>
1
)
{
changedPageRoutes
=
changedPageRoutes
.
filter
((
route
)
=>
route
!==
'/_app'
&&
route
!==
'/_document'
)
}
...
...
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