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
35e7b21d
Commit
35e7b21d
authored
Aug 12, 2019
by
Tim Neutkens
Committed by
Joe Haddad
Aug 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extra variable (#8329)
parent
36aabe05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
amp.ts
packages/next-server/lib/amp.ts
+2
-3
No files found.
packages/next-server/lib/amp.ts
View file @
35e7b21d
...
...
@@ -10,7 +10,6 @@ export function isInAmpMode({
}
export
function
useAmp
()
{
const
ampState
=
React
.
useContext
(
AmpStateContext
)
// un-comment below to not be considered AMP in dirty mode
return
isInAmpMode
(
ampState
)
// && ampMode.hasQuery
// Don't assign the context value to a variable to save bytes
return
isInAmpMode
(
React
.
useContext
(
AmpStateContext
))
}
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