Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

답변 페이지 성능 개선 #1

Closed
guesung opened this issue Jun 17, 2023 · 2 comments · Fixed by #6
Closed

답변 페이지 성능 개선 #1

guesung opened this issue Jun 17, 2023 · 2 comments · Fixed by #6
Labels
bug Something isn't working

Comments

@guesung
Copy link
Owner

guesung commented Jun 17, 2023

기존 화면

Jun-17-2023 14-51-51

로딩 속도가 느리다. 더 개선할 수 있는 방법이 있을까?

@guesung guesung added the bug Something isn't working label Jun 17, 2023
@guesung
Copy link
Owner Author

guesung commented Jun 17, 2023

사실, 지금 결과 페이지 구성은 아주 엉망이다. 결과페이지에서 이어지는 다른 페이지로의 이동을 빠르게 하기 위해 모든 페이지를 한 번에 로딩한다. 그 때, SSG도 모르고, 효율적인 코드가 무엇인지도 몰라 이렇게 코드를 짰었다.

@guesung
Copy link
Owner Author

guesung commented Jun 17, 2023

현재, result페이지에서 공유하기에 관한 데이터, 상세보기에 대한 데이터를 서버로부터 한 번에 모두 전송받고 있다. 백엔드 개발자가 손을 놓은 상태라 api를 수정하기는 불가능한 상태. 결과 페이지에서 받은 데이터를 또 다시 서버에 요청에서 받을 필요는 없고, 전역으로 상태를 관리하면 될 듯하다.

그런데 새로고침하면? recoil로 전역상태로 관리하면 새로고침하게 되면 제거가될 것이다. 그렇다고 localStorage에 저장하는게 바람직한 방법은 아닌 듯하다.

@guesung guesung linked a pull request Jun 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant