我对这个组件有一个问题。 当我不断地调用这个组件时,我得到了一条警告消息。 下面是显示的警告消息。Warning: Can't perform a React state update on an unmounted component.我已经使用return方法清除了timerId,但是我得到了这个文本。 如何在此组件中修改useEffect? 我该怎么办?下面是我的组件 import
我正在开发一个简单的React身份验证web应用程序,每当我尝试登录时,它在第一次尝试时都不起作用。每次登录只在第二次尝试时有效。 当我第一次单击时,我在控制台中得到以下错误。index.js:1 Warning: Can't perform a React state update on an unmounted component./configuration/firebase'
const AuthContext = React.creat