Can’t call setState (or forceUpdate) on an unmounted component 徐同保 2021-06-24 167 阅读1分钟 componentWillUnmount() { this.setState = () => { return } }