mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Merge master into canary (#3846)
* Move security related test cases into a its own file. * Removes the unused renderScript function * Add a nerv example. (#3573) * Add a nerv example. * Fix for indentation/style * Fix for name * Release 5.0.0 * Add multi-zones docs. (#3688) * with emotion example - hoist styles out of the index page component (#3821) * Use indexOf instead of startsWith (#3758) * Use indexOf instead of startsWith This fixes an IE11 regression, see #3755 * Lint the code
This commit is contained in:
parent
9cfea69ab1
commit
a10324d591
|
@ -7,7 +7,6 @@ if (typeof window !== 'undefined') {
|
||||||
hydrate(window.__NEXT_DATA__.ids)
|
hydrate(window.__NEXT_DATA__.ids)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default () => {
|
|
||||||
injectGlobal`
|
injectGlobal`
|
||||||
html, body {
|
html, body {
|
||||||
padding: 3rem 1rem;
|
padding: 3rem 1rem;
|
||||||
|
@ -67,6 +66,7 @@ export default () => {
|
||||||
animation: ${props => props.animation} 0.2s infinite ease-in-out alternate;
|
animation: ${props => props.animation} 0.2s infinite ease-in-out alternate;
|
||||||
`
|
`
|
||||||
|
|
||||||
|
export default () => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Basic>Cool Styles</Basic>
|
<Basic>Cool Styles</Basic>
|
||||||
|
|
|
@ -60,7 +60,7 @@ function unique () {
|
||||||
const metaCategories = {}
|
const metaCategories = {}
|
||||||
|
|
||||||
return (h) => {
|
return (h) => {
|
||||||
if (h.key && h.key.startsWith('.$')) {
|
if (h.key && h.key.indexOf('.$') === 0) {
|
||||||
if (keys.has(h.key)) return false
|
if (keys.has(h.key)) return false
|
||||||
keys.add(h.key)
|
keys.add(h.key)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue