useEffect(() => { fetchUser(userId); }, [userId]); // Correct