Skip to content

Commit

Permalink
Merge pull request #370 from TripInfoWeb/dev_gathering
Browse files Browse the repository at this point in the history
fix: useEffect 한번 실행 코드 제거, 서버에서 무한 로딩 발생
  • Loading branch information
ssssksss authored Sep 22, 2024
2 parents 5c6edd0 + f6380cf commit 0889ac5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/containers/gathering/read/GatheringCardListContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import useModalState from "@/hooks/useModalState";
import useAuthStore from "@/store/authStore";
import { Gathering } from "@/types/GatheringDto";
import { useRouter, useSearchParams } from "next/navigation";
import { useEffect, useRef, useState } from "react";
import { useEffect, useState } from "react";

const SkeletonGatheringList = () => {
return (
Expand All @@ -29,7 +29,6 @@ const GatheringCardListContainer = () => {
const authStore = useAuthStore();
const router = useRouter();
const modalState = useModalState();
const initRef = useRef(true);
const [currentPage, setCurrentPage] = useState(
searchParams.get("page") ? Number(searchParams.get("page")) : 1,
);
Expand All @@ -56,10 +55,6 @@ const GatheringCardListContainer = () => {
};

useEffect(() => {
if (initRef.current) {
initRef.current = false;
return;
}
const temp = async () => {
try {
const url = new URL(window.location.href);
Expand Down

0 comments on commit 0889ac5

Please sign in to comment.