mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Clear missed interval (#2611)
* clear missed interval * remove trailing whitespace
This commit is contained in:
parent
8acdae66d7
commit
726499ff14
|
@ -15,6 +15,10 @@ class Counter extends React.Component {
|
|||
this.timer = this.props.startClock()
|
||||
}
|
||||
|
||||
componentWillUnmount () {
|
||||
clearInterval(this.timer)
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<Page title='Other Page' linkTo='/' />
|
||||
|
|
Loading…
Reference in a new issue