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

  componentWillUnmount() {
    this.setState = () => {
      return
    }
  }

 

posted @ 2019-01-16 11:59  徐同保  阅读(197)  评论(0编辑  收藏  举报