We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c54d2b1 + a96a2e3 commit b2477ddCopy full SHA for b2477dd
1 file changed
src/context/AlbumContext.tsx
@@ -63,6 +63,8 @@ export const AlbumProvider: React.FC<{ children: ReactNode }> = ({
63
const fetchPetList = useCallback(
64
async (petId: number | null) => {
65
try {
66
+ console.log("fetchPetList 실행됨, petId:", petId);
67
+
68
const response = await axios.get(
69
`http://${server_url}:8080/memory-album/status`,
70
{ withCredentials: true }
@@ -110,9 +112,14 @@ export const AlbumProvider: React.FC<{ children: ReactNode }> = ({
110
112
};
111
113
114
useEffect(() => {
115
+ console.log("📢 초기 앨범 데이터 가져오는 중...");
116
fetchPetList(null);
117
}, []);
118
119
+ useEffect(() => {
120
+ console.log("앨범 데이터 업데이트됨:", albumData);
121
+ }, [albumData]);
122
123
124
if (selectedPet) {
125
fetchPetAlbum(selectedPet.petId);
0 commit comments