Skip to content

Commit

Permalink
chore: remove warning about componentWillReceiveProps from the console (
Browse files Browse the repository at this point in the history
  • Loading branch information
VKamotin authored Dec 1, 2020
1 parent cf6c16d commit 5ed039d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-kit/src/utils/with-rx2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const withRX = <P extends object>(Target: ComponentType<P>) => <D extends
}
}

componentWillReceiveProps(props: P) {
UNSAFE_componentWillReceiveProps(props: P) {
this.props$.next(props);
}

Expand Down

0 comments on commit 5ed039d

Please sign in to comment.