diff options
author | Renard | 2019-09-28 16:33:20 -0300 |
---|---|---|
committer | Renard | 2019-09-28 16:33:20 -0300 |
commit | 93fb4f9e79ce16fa539137dcaa54f449022e7db9 (patch) | |
tree | 726f9029f2ffe292a55bb1819871794a8415668f /src/Home.js | |
parent | a8f189227ebf3d44fe63cd7e47bd94086fe18f80 (diff) | |
download | bai-client-93fb4f9e79ce16fa539137dcaa54f449022e7db9.tar.gz bai-client-93fb4f9e79ce16fa539137dcaa54f449022e7db9.tar.xz bai-client-93fb4f9e79ce16fa539137dcaa54f449022e7db9.zip |
Fix: remove eventListener on unmount
Diffstat (limited to 'src/Home.js')
-rw-r--r-- | src/Home.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Home.js b/src/Home.js index 6b2e385..0cdad72 100644 --- a/src/Home.js +++ b/src/Home.js @@ -73,6 +73,7 @@ class Home extends Component { componentWillUnmount() { clearInterval(this.state.autoRefresh); + window.removeEventListener("mousemove", this.handeMouseMove); } async updateAges() { |