結果 : react setstate not working in useeffect