React在组件中直接使用dispatch好呢 还是用action函数来处理优雅
最佳答案: componentWillUnmount() { this.timer && clearTimeout(this.timer); this.props.dispatch({type : 'USER_ALL_CLEAR'}); } componentWillUnmount() ...更多关于React在组件中直接使用dispatch好呢 还是用action函数来处理优雅?的问题>>
React在组件中直接使用dispatch好呢 还是用action函数来处理优雅
最佳答案: componentWillUnmount() { this.timer && clearTimeout(this.timer); this.props.dispatch({type : 'USER_ALL_CLEAR'}); } componentWillUnmount() ...更多关于React在组件中直接使用dispatch好呢 还是用action函数来处理优雅?的问题>>
React在组件中直接使用dispatch好呢 还是用action函数来处理优雅
React在组件中直接使用dispatch好呢 还是用action函数来处理优雅componentWillUnmount() { this.timer && clearTimeout(this.timer); this.props.dispatch({type : ...更多关于React在组件中直接使用dispatch好呢 还是用action函数来处理优雅?的问题>>
React在组件中直接使用dispatch好呢 还是用action函数来处理优雅
React在组件中直接使用dispatch好呢 还是用action函数来处理优雅componentWillUnmount() { this.timer && clearTimeout(this.timer); this.props.dispatch({type : ...更多关于React在组件中直接使用dispatch好呢 还是用action函数来处理优雅?的问题>>