Skip to content

Commit f7acdd0

Browse files
janicduplessisosdnk
authored andcommitted
Use UNSAFE_componentWillUpdate in Swipable.js (#655)
To silence the react warning, ideally we'd migrate to new React apis.
1 parent 06bd8de commit f7acdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Swipeable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default class Swipeable extends Component<PropType, StateType> {
8181
);
8282
}
8383

84-
componentWillUpdate(props: PropType, state: StateType) {
84+
UNSAFE_componentWillUpdate(props: PropType, state: StateType) {
8585
if (
8686
this.props.friction !== props.friction ||
8787
this.props.overshootLeft !== props.overshootLeft ||

0 commit comments

Comments
 (0)