Change componentDidUnmount to componentWillUnmount (https://github.com/woocommerce/woocommerce-admin/pull/563)

This commit is contained in:
Joshua T Flowers 2018-10-17 19:12:04 -04:00 committed by GitHub
parent 34d7944988
commit d611817fc7
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Table extends Component {
window.addEventListener( 'resize', this.updateTableShadow );
}
componentDidUnmount() {
componentWillUnmount() {
window.removeEventListener( 'resize', this.updateTableShadow );
}