From 726499ff14cd735897614ff5324d39d7ec532c94 Mon Sep 17 00:00:00 2001 From: Denis Lukov Date: Sun, 13 Aug 2017 16:44:14 +0300 Subject: [PATCH] Clear missed interval (#2611) * clear missed interval * remove trailing whitespace --- examples/with-redux/pages/other.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/with-redux/pages/other.js b/examples/with-redux/pages/other.js index 26bfa70878dc5..70e98f90fb81b 100644 --- a/examples/with-redux/pages/other.js +++ b/examples/with-redux/pages/other.js @@ -15,6 +15,10 @@ class Counter extends React.Component { this.timer = this.props.startClock() } + componentWillUnmount () { + clearInterval(this.timer) + } + render () { return (