Skip to content

Commit 835250d

Browse files
douglaszaltronosdnk
authored andcommitted
fix: Introduce aliases for the unsafe lifecycles (#718)
Adds UNSAFE_ prefix for deprecated lifecycle hooks. (For more information about this codemod, see [React RFC #6](reactjs/rfcs#6))
1 parent 3e77269 commit 835250d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DrawerLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default class DrawerLayout extends Component<PropType, StateType> {
110110
this._updateAnimatedEvent(props, this.state);
111111
}
112112

113-
componentWillUpdate(props: PropType, state: StateType) {
113+
UNSAFE_componentWillUpdate(props: PropType, state: StateType) {
114114
if (
115115
this.props.drawerPosition !== props.drawerPosition ||
116116
this.props.drawerWidth !== props.drawerWidth ||

0 commit comments

Comments
 (0)