Skip to content

로그아웃시 리액트 쿼리 캐시 삭제#94

Merged
jungwon123 merged 4 commits into
mainfrom
feat/boards
Mar 3, 2026
Merged

로그아웃시 리액트 쿼리 캐시 삭제#94
jungwon123 merged 4 commits into
mainfrom
feat/boards

Conversation

@jungwon123

Copy link
Copy Markdown
Contributor

Summary

로그아웃시 리액트 쿼리 캐시 삭제

Issue

@jungwon123 jungwon123 added this to the 컴포넌트 milestone Feb 27, 2026
@jungwon123 jungwon123 requested review from a team, HWAN0218, Jieunsse and yooolleee February 27, 2026 12:35
@jungwon123 jungwon123 added the 오류수정 오류 및 에러 해결할 때 사용해주세요. label Feb 27, 2026
@github-project-automation github-project-automation Bot moved this to 개발 대기중 in workers Feb 27, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 로그아웃 기능을 개선하여 사용자가 로그아웃할 때 React Query 캐시를 자동으로 지우도록 합니다. 이 변경으로 인해 이전 세션의 데이터가 새 사용자에게 노출되거나 잘못된 정보가 표시되는 것을 방지하여 애플리케이션의 데이터 무결성을 보장합니다.

Highlights

  • 리액트 쿼리 캐시 관리: 로그아웃 시점에 React Query 캐시를 명확하게 삭제하도록 로직이 추가되었습니다. 이는 사용자가 로그아웃한 후 이전 사용자 데이터가 실수로 표시되는 것을 방지하여 데이터 일관성과 보안을 강화합니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

로그아웃 시 React Query 캐시를 삭제하도록 queryClient.clear()를 추가한 변경 사항을 확인했습니다. 이는 로그아웃 시 클라이언트 측에 남아있을 수 있는 오래된 데이터를 정리하는 좋은 방법입니다. 다만, 로그아웃 API 호출이 실패했을 때의 예외 처리를 추가하여 로그아웃 기능의 안정성을 높이는 것을 제안합니다.

Comment thread src/app/(root)/layout.tsx

@yooolleee yooolleee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우선 어프로브는 드립니다. 재환님 pr 이 먼저 반영되어야 할 것 같습니다.

@jungwon123 jungwon123 merged commit cee71d8 into main Mar 3, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from 개발 대기중 to 개발 완료 in workers Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

오류수정 오류 및 에러 해결할 때 사용해주세요.

Projects

Status: 개발 완료

Development

Successfully merging this pull request may close these issues.

로그아웃시 쿼리 캐시 삭제

4 participants