Skip to content

Commit

Permalink
Clear missed interval (vercel#2611)
Browse files Browse the repository at this point in the history
* clear missed interval

* remove trailing whitespace
  • Loading branch information
NeXTs authored and timneutkens committed Aug 13, 2017
1 parent 8acdae6 commit 726499f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/with-redux/pages/other.js
Original file line number Diff line number Diff line change
Expand Up @@ -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='/' />
Expand Down

0 comments on commit 726499f

Please sign in to comment.