結果 : react call custom hook inside useeffect