結果 : call useeffect inside function