Skip to content

Conversation

@b0nsu
Copy link
Collaborator

@b0nsu b0nsu commented Jan 30, 2026

✅ Key Changes

이번 PR에서 작업한 내용을 간략히 설명해주세요

type UseGetNoticeParams = paths['/api/student/notice']['get']['parameters']['query'];

const useGetNotice = (params?: UseGetNoticeParams) => {
  return TanstackQueryClient.useQuery('get', '/api/student/notice', {
    params: {
      query: params,
    },
  });
  • useGetNotice 에 query prams 추가 {page?: number | undefined; size?: number | undefined;}

predicate: (query) => Array.isArray(query.queryKey) && query.queryKey[0] === 'get' && query.queryKey[1] === '/api/student/notice',

  • '/api/student/notice' 파라미터 유무 관계없이 쿼리 키 초기화되도록 변경

<FlatList>, const { data: noticeData, isFetching } = useGetNotice({ page, size: PAGE_SIZE });

  • FlastList 로 화면 구현 변경 및 api pagination 적용

const { data: noticeData } = useGetNotice({ size: 2 });

  • NotificationsScreen 기획 반영하여 최대 공지 갯수 2개로 반영

@b0nsu b0nsu requested a review from sterdsterd January 30, 2026 06:48
@vercel
Copy link

vercel bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pointer-admin Ready Ready Preview, Comment Jan 30, 2026 6:48am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix/native/noitce-#182] Menu 공지사항 페이지네이션 적용 및 NotificationsScreen 수정

2 participants