We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48dda4d commit a46cdb3Copy full SHA for a46cdb3
src/utils/isReactComponentMethod.js
@@ -22,14 +22,21 @@ const componentMethods = [
22
'componentDidReceiveProps',
23
'componentDidUpdate',
24
'componentWillMount',
25
+ 'UNSAFE_componentWillMount',
26
'componentWillReceiveProps',
27
+ 'UNSAFE_componentWillReceiveProps',
28
'componentWillUnmount',
29
'componentWillUpdate',
30
+ 'UNSAFE_componentWillUpdate',
31
'getChildContext',
32
'getDefaultProps',
33
'getInitialState',
34
'render',
35
'shouldComponentUpdate',
36
+ 'getDerivedStateFromProps',
37
+ 'getDerivedStateFromError',
38
+ 'getSnapshotBeforeUpdate',
39
+ 'componentDidCatch',
40
];
41
42
/**
0 commit comments