useEffect infinite loop even with empty array as dependency

前端 未结 0 1937
自闭症患者
自闭症患者 2020-12-01 14:37

i\'m runnig the code below but it couses an infinite rerender in component. super weirred

    const dispatch = useDispatch()
    const token = useSelector(sta         


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