我对这个组件有一个问题。 当我不断地调用这个组件时,我得到了一条警告消息。 下面是显示的警告消息。Warning: Can't perform a React state update on an unmounted component.To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.如何在此组件中修改useEffect</e
如何修复错误:Warning: Can't perform a React state update on an unmounted component.To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.这是密码: let ignore = false; const