Skip to content

Commit a46cdb3

Browse files
committed
Ignore latest React functions
1 parent 48dda4d commit a46cdb3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utils/isReactComponentMethod.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,21 @@ const componentMethods = [
2222
'componentDidReceiveProps',
2323
'componentDidUpdate',
2424
'componentWillMount',
25+
'UNSAFE_componentWillMount',
2526
'componentWillReceiveProps',
27+
'UNSAFE_componentWillReceiveProps',
2628
'componentWillUnmount',
2729
'componentWillUpdate',
30+
'UNSAFE_componentWillUpdate',
2831
'getChildContext',
2932
'getDefaultProps',
3033
'getInitialState',
3134
'render',
3235
'shouldComponentUpdate',
36+
'getDerivedStateFromProps',
37+
'getDerivedStateFromError',
38+
'getSnapshotBeforeUpdate',
39+
'componentDidCatch',
3340
];
3441

3542
/**

0 commit comments

Comments
 (0)