Skip to content

Commit eafd796

Browse files
Akiyamkadevelopit
andauthored
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 <[email protected]> * revert: back to componentWillReceiveProps Co-authored-by: Jason Miller <[email protected]>
1 parent dd919e5 commit eafd796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/integrations/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function connect(mapStateToProps, actions) {
3939
return this.forceUpdate();
4040
}
4141
};
42-
this.componentWillReceiveProps = p => {
42+
this.UNSAFE_componentWillReceiveProps = p => {
4343
props = p;
4444
update();
4545
};

0 commit comments

Comments
 (0)