Commit 726499ff authored by Denis Lukov's avatar Denis Lukov Committed by Tim Neutkens

Clear missed interval (#2611)

* clear missed interval

* remove trailing whitespace
parent 8acdae66
...@@ -15,6 +15,10 @@ class Counter extends React.Component { ...@@ -15,6 +15,10 @@ class Counter extends React.Component {
this.timer = this.props.startClock() this.timer = this.props.startClock()
} }
componentWillUnmount () {
clearInterval(this.timer)
}
render () { render () {
return ( return (
<Page title='Other Page' linkTo='/' /> <Page title='Other Page' linkTo='/' />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment