Skip to content

Commit

Permalink
[Fix] BoardList delete cache
Browse files Browse the repository at this point in the history
  • Loading branch information
k-wisdom committed Jun 13, 2024
1 parent 7a5ea8c commit 0ae7e54
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/community/components/club/clubDetail/BoardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export default function BoardList({ clubId, type }: Props) {
const [alertMsg, setAlertMsg] = useState('');
const loadMoreRef = useRef<any | null>(null);

// useEffect(() => {
// //페이지 이탈 시 캐시 삭제
// return () => {
// queryClient.removeQueries({ queryKey: ['clubBoardList', clubId, type] });
// };
// }, [clubId, queryClient]);
useEffect(() => {
//페이지 이탈 시 캐시 삭제
return () => {
queryClient.removeQueries({ queryKey: ['clubBoardList', clubId, type] });
};
}, [clubId, queryClient]);

const handleNonMemberListclick = () => {
// 여기서 멤버십 여부에 따라 다른 알림을 띄우기
Expand Down

0 comments on commit 0ae7e54

Please sign in to comment.