From d611817fc757bd90c646a7580a0ff4ecf07a31cf Mon Sep 17 00:00:00 2001 From: Joshua T Flowers Date: Wed, 17 Oct 2018 19:12:04 -0400 Subject: [PATCH] Change componentDidUnmount to componentWillUnmount (https://github.com/woocommerce/woocommerce-admin/pull/563) --- plugins/woocommerce-admin/client/components/table/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/client/components/table/table.js b/plugins/woocommerce-admin/client/components/table/table.js index e2e42bb961c..dffba041356 100644 --- a/plugins/woocommerce-admin/client/components/table/table.js +++ b/plugins/woocommerce-admin/client/components/table/table.js @@ -73,7 +73,7 @@ class Table extends Component { window.addEventListener( 'resize', this.updateTableShadow ); } - componentDidUnmount() { + componentWillUnmount() { window.removeEventListener( 'resize', this.updateTableShadow ); }