Skip to content

Commit

Permalink
리뷰 작성 완료 후 리스트 업데이트 안 되는 이슈 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
YOOJS1205 committed Jan 31, 2024
1 parent 292a635 commit 8699493
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/review/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default function Page() {
const myRevisitedCount = searchParams.get('myRevisitedCount') ?? 0;
const { mutate: postLog } = usePostLog({
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['get-myLog'] });
queryClient.refetchQueries({
queryKey: ['get-myLog'],
});
push(
`/review/complete?storeName=${storeName}&myRevisitedCount=${
Number(myRevisitedCount) + 1
Expand Down

0 comments on commit 8699493

Please sign in to comment.