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

상세페이지 개발중 rsc 관련 #2

Merged
merged 36 commits into from
Aug 19, 2024
Merged

상세페이지 개발중 rsc 관련 #2

merged 36 commits into from
Aug 19, 2024

Conversation

eun-hak
Copy link
Contributor

@eun-hak eun-hak commented Aug 12, 2024

해당 사항 (중복 선택)

  • FEAT : 새로운 기능 추가 및 개선
  • TEST : 테스트 추가 및 리팩토링
  • FIX : 버그 수정
  • REFACTOR : 결과의 변경 없이 코드의 구조를 재조정
  • STYLE : 코드 스타일에 관련된 변경 사항
  • DOCS : 코드가 아닌 문서를 수정한 경우
  • REMOVE : 파일을 삭제하는 작업만 수행
  • RENAME : 파일 또는 폴더명을 수정하거나 위치(경로)를 변경
  • CHORE : 패키지 매니저 설정, 코드 수정 없이 설정 변경(eslint) 등 기타 사항

설명

상세페이지 제작중이며 현재 문제를 겪고있어 pr 요청 드립니다.

전체 안건은 2가지입니다.

1번째는 swiper를 사용한 슬라이더 구현시 빌드 전과 빌드 후가 UI차이가 나는데 왜 그런지 아시는분 있으실까요?


빌드중

image

빌드후
image



ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ



2번째는 RSC를 활용한 데이터 캐싱 관련 질문입니다.



image

현재 사진 속 표시된 부분이 클라이언트에서 상태변경에 필요한 부분인데 전체 페이지에서 상태를 관리하게되면 페이지 파일에 use client를 사용할 수 밖에없더라고요.


최상단 컴포넌트가 rcc인 상태에서 자식컴포넌트를 rsc로 두고 fetch api를 통해 서버사이드 렌더링을 진행했을 때 에러사항이 있을지 확인 부탁드립니다.

@eun-hak eun-hak added bug Something isn't working question Further information is requested labels Aug 12, 2024
@eun-hak eun-hak merged commit 7f3abd8 into main Aug 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant