mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Add componentWillUnmount() to thread/index.js
This commit is contained in:
parent
763d9bdae7
commit
5ea27dd616
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue