Add componentWillUnmount() to thread/index.js

This commit is contained in:
Christopher Gurnee 2022-04-08 14:18:57 +00:00
parent 763d9bdae7
commit 5ea27dd616

View file

@ -474,6 +474,10 @@ class Thread extends React.Component {
})
}
componentWillUnmount () {
this.stopLoading = true
}
render () {
const { subreddit, id, author } = this.state.post
const { commentID } = this.props.match.params