1
0
Fork 0
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:
Denis Lukov 2017-08-13 16:44:14 +03:00 committed by Tim Neutkens
parent 8acdae66d7
commit 726499ff14

View file

@ -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='/' />