fix: queryKey 중복 제거
This commit is contained in:
parent
d9963e4b29
commit
9667eb319a
@ -4,7 +4,7 @@ import { API_URL } from '../../constants';
|
||||
|
||||
export function useFreeboards(lectureId, page = 0) {
|
||||
return useSuspenseQuery({
|
||||
queryKey: ['noticelist', lectureId, page],
|
||||
queryKey: ['freeboardlist', lectureId, page],
|
||||
queryFn: () => instance.get(`${API_URL}/board?lectureId=${lectureId}&category=freeboard&pageNo=${page}`),
|
||||
});
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import { API_URL } from '../../constants';
|
||||
|
||||
export function useStudentQuizsetDetail(id) {
|
||||
return useSuspenseQuery({
|
||||
queryKey: ['quizset', id],
|
||||
queryKey: ['studentQuizsetDetail', id],
|
||||
queryFn: () => instance.get(`${API_URL}/quiz/student/${id}`),
|
||||
});
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import { API_URL } from '../../constants';
|
||||
|
||||
export function useTeacherQuizsetDetail(id) {
|
||||
return useSuspenseQuery({
|
||||
queryKey: ['quizset', id],
|
||||
queryKey: ['teacherQuizsetDetail', id],
|
||||
queryFn: () => instance.get(`${API_URL}/quiz/teacher/${id}`),
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user