Skip to content

스프린트미션11 [미완] - 정남영#79

Open
dudska12 wants to merge 16 commits intocodeit-sprint-fullstack:react-정남영from
dudska12:react-11
Open

스프린트미션11 [미완] - 정남영#79
dudska12 wants to merge 16 commits intocodeit-sprint-fullstack:react-정남영from
dudska12:react-11

Conversation

@dudska12
Copy link
Copy Markdown
Collaborator

@dudska12 dudska12 commented Sep 10, 2025

요구사항

기본

  • [x]
  • []
  • []

심화

  • [x]
  • []

주요 변경사항

스크린샷

image

멘토에게

  • 스프린트미션11 미완-
  • 새롭게 처음부터 시작하느라 기존 브랜치랑 연동이안되어있습니다. 추후에 충돌해결하도록하겠습니다.

Copy link
Copy Markdown
Collaborator

@wseungjin wseungjin left a comment

Choose a reason for hiding this comment

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

이번주도 수고 많았습니다~ nextjs를 안쓰는거 같은데
요구사항이었나요?
vite에 대해서 공부를 해보면 좋을거 같아요~

@@ -0,0 +1,32 @@
import { Link } from "react-router-dom";
import Select from "../../components/market/select";
import Table from "../../components/market/table";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

절대경로를 한번 써보는건 어떨까요?


function Button(): JSX.Element {
const [open, setOpen] = useState(false);
const { data: user, isLoading } = useUser();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

미리 ssr할때 prefetch하는 과정은 없나요? 처음부터 가지고 있으면 좋을거 같네요


const handleLogout = () => {
localStorage.removeItem("token");
queryClient.removeQueries({ queryKey: ["me"] });
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

무슨 역할을 하는 함수인지 이해하고 있나요?
queryClient의 캐시가 어떻게 쌓이는 구조인지 공부해보면 좋을거같아요.

Copy link
Copy Markdown
Collaborator Author

@dudska12 dudska12 Sep 11, 2025

Choose a reason for hiding this comment

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

queryClient로 로그인을 쓴 이유가 추후에 유저가 상품을 등록하거나 상품을 구매했을때 그 유저가 가지고있는 상품에대해 업데이트?하기 위해서 그렇게 의도했는데 그렇게되면 나중에 자기가 뭔글을썻는지 기타등등에대해서는 굳이 재요청할 필요가 없다고생각이드는데 그래서 로그아웃시 그 유저에대한 정보를 지워야한다고 생각이들어서 저렇게 썻는데 제가 잘못이해하고있는 부분이 있을까요??

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

아뇨 틀렸다는건 아니고요. react-query를 사용하셨길래 내부적으로 좀 어떻게 동작하는지 이해 하고 쓰시면 좋을꺼 같아서 의견드렸습니다~

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

넵 알겠습니다 빠른 답변 감사합니다


// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

vite가 뭐고 어떤 역할을 하는지 조사를 해보면 좋겠어요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants