React on fetch in then clause array not detecting added item and not detecting that item has been deleted

前端 未结 0 1707
陌清茗
陌清茗 2020-12-18 09:40

I have a problem where after fetching array is not updating properly.

      const [lists, setLists] = useState([]);
    
      useEffect(() => {
        ge         


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