以下のコードで発生する問題は何ですか? ```jsx const [data, setData] = useState([]); useEffect(() => { fetch('/api/data') .then(response => response.json()) .then(result => setData(result)); }, [data]); ```