React useEffect hook doesn't trigger when a dependency changes

前端 未结 0 970
无人及你
无人及你 2021-02-18 15:59

I have this useEffect hook

useEffect(() => {
    console.log(\'mark useEffect\', compatibleProducts);
    if (Object.keys(compatibleProducts.rims).length === 0         


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