📌  相关文章
📜  setstate 不会完全更新 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:13.595000             🧑  作者: Mango

代码示例2
//if some of your code depends on that state update you can use a useeffect like this
 useEffect(() => {
        if (currentProgress[index].progress === 100) {
            GoBack()
        }
    }, [currentProgress])