Skip to content

Conversation

@kyw0716
Copy link
Owner

@kyw0716 kyw0716 commented Nov 7, 2022

firebase와 정보를 주고받는 방식 변경
프론트 컴포넌트에서 직접 요청 => next.js api라우팅을 사용해 요청

@vercel
Copy link

vercel bot commented Nov 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fire-base ❌ Failed (Inspect) Jun 16, 2023 9:29am

기존에는 메인 페이지에 들어갈 때마다 useEffect에 의해 팔로우 하는 유저들의 목록을 불러옴.

성능을 크게 저하시킬 요소였기 때문에 recoil의 selector를 활용해 처음 유저가 로그인 했을 당시 딱 한번만 요청을 발생시켜 팔로우 하는 유저 정보를 받아오도록 수정함.
메인 피드 정보의 creator에 유저 아이디가 아닌 유저 정보를 담아서 보내주도록 api 수정
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.

2 participants