Skip to content

Commit

Permalink
hotfix: QueryClient -> useQueryClient로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-byeong committed Dec 4, 2024
1 parent 7cfa8ee commit e3d1ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/pages/quiz-session/ui/QuizHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import RabbitImage from '@/shared/assets/characters/토끼.png';
import PenguinImage from '@/shared/assets/characters/펭귄.png';
import HamsterImage from '@/shared/assets/characters/햄스터.png';
import { Calendar, Clock, Users } from 'lucide-react';
import { QueryClient } from '@tanstack/react-query';
import { useQueryClient } from '@tanstack/react-query';

// import ProgressBar from './ProgressBar';

Expand Down Expand Up @@ -43,7 +43,7 @@ export default function QuizHeader({
const socket = getQuizSocket();
const { data: myInfo } = useGetMyInfo({ socket });
const { nickname, character } = myInfo;
const queryClient = new QueryClient();
const queryClient = useQueryClient();

useEffect(() => {
const intervalId = setInterval(() => {
Expand Down

0 comments on commit e3d1ced

Please sign in to comment.