Updating component state after the component has already unmounted.
// Buggy Code
useEffect(() => {
fetch('/api/data')
.then(response => response.json())
.then(data => {
setData(data); // Error if component unmounted
});
}, []);
// Warning: Can't perform a React state update on an unmounted component