7d0919a784
* Break out client-navigation and rendering test from basic test * Try with parallelism dialed back to 3 * Update jest-junit for more compatible timings in CircleCI * Bump to test timings * Use filepath for suitename in jest-junit * Store reports as artifacts * Try using classname for timings * Bump * Remove reports from artifacts
24 lines
476 B
JavaScript
24 lines
476 B
JavaScript
import { Component } from 'react'
|
|
import Link from 'next/link'
|
|
|
|
let count = 0
|
|
|
|
export default class SelfReload extends Component {
|
|
static getInitialProps ({ res }) {
|
|
if (res) return { count: 0 }
|
|
count += 1
|
|
|
|
return { count }
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<div id='self-reload-page'>
|
|
<Link href='/nav/self-reload'>
|
|
<a id='self-reload-link'>Self Reload</a>
|
|
</Link>
|
|
<p>COUNT: {this.props.count}</p>
|
|
</div>
|
|
)
|
|
}
|
|
}
|