Can’t call setState (or forceUpdate) on an unmounted component

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xutongbao/article/details/86505402
  componentWillUnmount() {
    this.setState = () => {
      return
    }
  }

猜你喜欢

转载自blog.csdn.net/xutongbao/article/details/86505402