useEffect Clean-up Function with Boolean Flag. First, the gist of our fix in code: useEffect(() => {. let active = true;. const fetchData = async () => {.
確定! 回上一頁