Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 10fe551

Browse files
janicduplessissatya164
authored andcommitted
fix: silence deprecated lifecycle warning in Transitioner (#118)
I don't feel confident trying to migrate this thing to `getDerivedStateFromProps` so... `componentWillReceiveProps` -> `UNSAFE_componentWillReceiveProps`
1 parent e83795b commit 10fe551

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/Transitioner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Transitioner extends React.Component<Props, State> {
117117
this.state.position.removeListener(this.positionListener);
118118
}
119119

120-
componentWillReceiveProps(nextProps: Props) {
120+
UNSAFE_componentWillReceiveProps(nextProps: Props) {
121121
if (this.isTransitionRunning) {
122122
if (!this.queuedTransition) {
123123
this.queuedTransition = { prevProps: this.props };

0 commit comments

Comments
 (0)