【发布时间】:2020-03-12 15:41:44
【问题描述】:
But this type going to new redux instance
如果我用超时调用动作也没问题。
componentDidMount(){
setTimeout(()=>this.props.isLoggedIn(), 100)
}
或者如果我在渲染下调用,就没有问题了。
render() {
this.props.isLoggedIn()
...
...
仅当我在应用加载时调用 componentDidUpdate 下的操作时才会出现此问题。像这样:
componentDidMount(){
this.props.isLoggedIn() //problem
}
导致拆分redux实例...
【问题讨论】:
标签: reactjs react-native react-redux redux-thunk react-native-debugger