Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary of ChangesHello @dodaaaaam, 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은 토스트 메시지 표시와 관련된 버그를 수정하고, 사진 피드 데이터의 캐싱 전략을 개선합니다. 토스트 메시지가 사라진 후 관련 상태를 명확하게 초기화하여 사용자 경험을 향상시키고, 데이터 캐싱 시간을 조정하여 최신 정보를 더 빠르게 반영하도록 합니다. Highlights
🧠 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. Changelog
Activity
Using Gemini Code AssistThe 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
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 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
|
| staleTime: 1000 * 60, // 1분 동안은 "신선" → 마운트돼도 refetch 안 함 | ||
| gcTime: 1000 * 60 * 5, // 5분간 캐시 유지 |
| const fadeTimer = setTimeout(() => setToastVisible(false), 1600); | ||
| const removeTimer = setTimeout(() => setMounted(false), 3000); | ||
| const removeTimer = setTimeout(() => { | ||
| setMounted(false); | ||
| navigate(location.pathname, { replace: true }); // 타이머 없앨 때 state도 같이 삭제 | ||
| }, 3000); |
src/pages/photoFeed/PostPage.tsx
Outdated
| const fadeTimer = setTimeout(() => setToastVisible(false), 1600); | ||
| const removeTimer = setTimeout(() => setMounted(false), 3000); | ||
| const removeTimer = setTimeout(() => { | ||
| setIsNewPost(false); | ||
| setMounted(false); | ||
| }, 3000); |
| gcTime: 1000 * 60 * 5, // 5분간 캐시 유지 | ||
| refetchOnMount: false, // 컴포넌트 마운트 시 재요청 막기 | ||
| refetchOnWindowFocus: false, // 탭 다시 클릭/포커스 시 재요청 막기 | ||
| refetchOnReconnect: false, // 네트워크 재연결 시 재요청 막기 |
There was a problem hiding this comment.
SHOULD: 이제 봤지만 refetchOnReconnect 정도는 살려둬도 괜찮을거 같아요!
MlNTYS
left a comment
There was a problem hiding this comment.
PRAISE: 캐시 로직이랑 스크롤 Toast 잘 해주셨는데 Toast 로직이 반복되는 거 같아서 분리해도 좋을 거 같네요!
🔀 Pull Request Title
토스트 메세지 관련 버그 수정
📌 PR 설명
이번 PR에서 어떤 작업을 했는지 요약해주세요.
📷 스크린샷
UI 변경이 있을 경우 스크린샷을 첨부해주세요.