Skip to content

Commit

Permalink
Merge pull request #121 from Linkup-3mw/feature/clubDetail
Browse files Browse the repository at this point in the history
[Fix] BoardList delete cache
  • Loading branch information
k-wisdom authored Jun 13, 2024
2 parents 3e2c2a7 + 0ae7e54 commit e2db6db
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 e2db6db

Please sign in to comment.