Skip to content

Commit

Permalink
fix developit#171 - remove warnings about deprecated hook on react 16…
Browse files Browse the repository at this point in the history
….9.0^
  • Loading branch information
Akiyamka committed Aug 23, 2019
1 parent a84fc5c commit db87ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/integrations/preact.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function connect(mapStateToProps, actions) {
return this.setState({});
}
};
this.componentWillReceiveProps = p => {
this.UNSAFE_componentWillReceiveProps = p => {
props = p;
update();
};
Expand Down
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 db87ca6

Please sign in to comment.