mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
Forgot to unlisten to UserStore when unmounting
This commit is contained in:
parent
af58687572
commit
09812a1881
@ -60,6 +60,8 @@ let MediaContainer = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
UserStore.unlisten(this.onChange);
|
||||||
|
|
||||||
window.clearInterval(this.state.timerId);
|
window.clearInterval(this.state.timerId);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user