Merge pull request #1 from tomsapps/fix-unmount-lifecycle-methods

Rename componentDidUnmount to componentWillUnmount
pull/54/head
Tomasz Sok 9 years ago committed by GitHub
commit 642e1371da

@ -24,7 +24,7 @@ export default class App extends React.Component {
SupportStore.listen(this._onChange)
}
componentDidUnmount() {
componentWillUnmount() {
SupportStore.unlisten(this._onChange)
}

@ -24,7 +24,7 @@ export default class ChromeNotice extends React.Component {
SupportStore.listen(this._onChange)
}
componentDidUnmount() {
componentWillUnmount() {
DownloadStore.unlisten(this._onChange)
SupportStore.unlisten(this._onChange)
}

@ -23,7 +23,7 @@ export default class DownloadPage extends React.Component {
DownloadStore.listen(this._onChange)
}
componentDidUnmount() {
componentWillUnmount() {
DownloadStore.unlisten(this._onChange)
}

@ -17,7 +17,7 @@ export default class ErrorPage extends React.Component {
ErrorStore.listen(this._onChange)
}
componentDidUnmount() {
componentWillUnmount() {
ErrorStore.unlisten(this._onChange)
}

@ -22,7 +22,7 @@ export default class UploadPage extends React.Component {
UploadStore.listen(this._onChange)
}
componentDidUnmount() {
componentWillUnmount() {
UploadStore.unlisten(this._onChange)
}

Loading…
Cancel
Save