Skip to content

Commit

Permalink
fix #171 - remove warnings about deprecated hook on react 16.9.0^ (#172)
Browse files Browse the repository at this point in the history
* 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 <developit@users.noreply.github.com>

* revert: back to componentWillReceiveProps

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
  • Loading branch information
Akiyamka and developit committed Jun 17, 2020
1 parent dd919e5 commit eafd796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function connect(mapStateToProps, actions) {
return this.forceUpdate();
}
};
this.componentWillReceiveProps = p => {
this.UNSAFE_componentWillReceiveProps = p => {
props = p;
update();
};
Expand Down

0 comments on commit eafd796

Please sign in to comment.