From 00f31ea2d4f56216c889abf19c6c3388822ba426 Mon Sep 17 00:00:00 2001 From: Viktor Hesselbom Date: Fri, 13 Mar 2020 15:59:18 +0100 Subject: [PATCH] Replace componentWillReceiveProps with UNSAFE_componentWillReceiveProps in React due to deprecation --- 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(); };