How to prevent react useEffect running at component mount when using second parameter

前端 未结 0 1854
Happy的楠姐
Happy的楠姐 2020-12-16 00:49

I can see here that when I run this component I see both effects that are being called. How to prevent the second one to be called on component mount?

const I         


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