Why does SetTimeout code still executes after clearTimeout

后端 未结 0 1081
执笔经年
执笔经年 2021-01-22 00:06

I have following code in my react component:

//some code
var timeout = null; //global variable

//some more code

useEffect(() => {
    if(...some condition) {         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题