From eafd7960f7fa7e255600daf698bc6e95003ea342 Mon Sep 17 00:00:00 2001 From: Alexander CherryTea Date: Thu, 18 Jun 2020 02:46:59 +0300 Subject: [PATCH] fix #171 - remove warnings about deprecated hook on react 16.9.0^ (#172) * fix #171 - remove warnings about deprecated hook on react 16.9.0^ * revert change in preact intecgration * Update src/integrations/react.js Co-Authored-By: Jason Miller * revert: back to componentWillReceiveProps Co-authored-by: Jason Miller --- src/integrations/react.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrations/react.js b/src/integrations/react.js index 6b1fd4c..672b3db 100644 --- a/src/integrations/react.js +++ b/src/integrations/react.js @@ -39,7 +39,7 @@ export function connect(mapStateToProps, actions) { return this.forceUpdate(); } }; - this.componentWillReceiveProps = p => { + this.UNSAFE_componentWillReceiveProps = p => { props = p; update(); };