React Hook useEffect has missing .missing dependencies: 'Score', 'props', and 'windowDimension

后端 未结 0 1851
南旧
南旧 2021-01-28 15:09
useEffect(()=>{

//after game ends
if(gameEnd){
  props.gameEndHandler(Score)
}
if(!props.gameEnd){
  setScore(prev=>({
    ...prev,
    XScore: 0,
    OScore: 0,
         


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