import { useCallback } from "react"; // ... Your imports and other code ... export default function DayPage() { // ... Your state declarations ... // Function to fetch data using useCallback const handleFetchData = useCallback(() => { dayRender(userId, month, date) .then((response) => { // 데이터 처리 로직 //console.log(response.data.data); setDayConsumptionData(response.data.data.paymentResponses); //..