我的视图中有一个弹出窗口,在弹出窗口中有一个倒计时计时器。我需要隐藏弹出窗口时,倒计时计时器有value1。这就是我尝试过的。componentDidUpdate() { clearInterval(this.intervalDurationThis can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate
我正在使用React-Native、React-Navigation和Redux。我有一个注册页面,这将发送用户信息到服务器,并将侦听令牌。在我的组件中,我使用componentDidUpdate检查userLoggedIn是否为真,如果是,我将重定向到“主”页面。componentDidUpdate(){ if (th