aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-28 16:33:20 -0300
committerLibravatar Renard 2019-09-28 16:33:20 -0300
commit93fb4f9e79ce16fa539137dcaa54f449022e7db9 (patch)
tree726f9029f2ffe292a55bb1819871794a8415668f
parenta8f189227ebf3d44fe63cd7e47bd94086fe18f80 (diff)
downloadbai-client-93fb4f9e79ce16fa539137dcaa54f449022e7db9.tar.gz
bai-client-93fb4f9e79ce16fa539137dcaa54f449022e7db9.tar.xz
bai-client-93fb4f9e79ce16fa539137dcaa54f449022e7db9.zip
Fix: remove eventListener on unmount
-rw-r--r--src/Home.js1
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() {