Skip to content

Commit 5ed039d

Browse files
authored
chore: remove warning about componentWillReceiveProps from the console (#236)
1 parent cf6c16d commit 5ed039d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-kit/src/utils/with-rx2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const withRX = <P extends object>(Target: ComponentType<P>) => <D extends
4949
}
5050
}
5151

52-
componentWillReceiveProps(props: P) {
52+
UNSAFE_componentWillReceiveProps(props: P) {
5353
this.props$.next(props);
5454
}
5555

0 commit comments

Comments
 (0)