@@ -17,7 +17,8 @@ const resaga = (originConfigs) => (Component) => {
1717
1818
1919 class Resaga extends React . PureComponent {
20- componentWillMount = ( ) => {
20+ // eslint-disable-next-line camelcase
21+ UNSAFE_componentWillMount = ( ) => {
2122 utils . config . set ( configs . name , configs ) ;
2223 const {
2324 setValue, setValueWithFunc,
@@ -43,7 +44,8 @@ const resaga = (originConfigs) => (Component) => {
4344 this . values = helpers . exportValues ( { props : this . props , configs } ) ;
4445 } ;
4546
46- componentWillReceiveProps = ( nextProps ) => {
47+ // eslint-disable-next-line camelcase
48+ UNSAFE_componentWillReceiveProps = ( nextProps ) => {
4749 if ( debug . on ( ) ) {
4850 // eslint-disable-next-line react/destructuring-assignment
4951 const name = `${ this . internalProps . Component . name } ${ this . props . id ? `[${ this . props . id } ]` : '' } ` ;
@@ -52,7 +54,8 @@ const resaga = (originConfigs) => (Component) => {
5254 } ;
5355
5456
55- componentWillUpdate = ( nextProps ) => {
57+ // eslint-disable-next-line camelcase
58+ UNSAFE_componentWillUpdate = ( nextProps ) => {
5659 const changes = helpers . getValuesChanged ( this . values , nextProps , this . internalProps ) ;
5760 if ( changes ) {
5861 this . values = { ...this . values , ...changes } ;
0 commit comments