Skip to content

refactor: 로그인 응답 유저 정보 캐시 저장으로 불필요한 API 요청 제거 #172

Description

@zaenny

어떤 기능인가요?

로그인 응답에 유저 정보가 포함되어 있음에도 NavigationBar에서 별도로 API 요청을 하고있어서 불필요해보임

작업 상세 내용

  • 로그인 서버 액션에서 응답받은 유저 정보를 클라이언트로 반환
  • 로그인 성공 후 queryClient.setQueryData(userQueries.myInfo().queryKey, user)로 캐시에 저장
  • NavigationBar에서 useSuspenseQuery(userQueries.myInfo())로 캐시 데이터 사용

참고할만한 자료(선택)

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions