스프린트미션11 [미완] - 정남영#79
Conversation
wseungjin
left a comment
There was a problem hiding this comment.
이번주도 수고 많았습니다~ nextjs를 안쓰는거 같은데
요구사항이었나요?
vite에 대해서 공부를 해보면 좋을거 같아요~
| @@ -0,0 +1,32 @@ | |||
| import { Link } from "react-router-dom"; | |||
| import Select from "../../components/market/select"; | |||
| import Table from "../../components/market/table"; | |||
|
|
||
| function Button(): JSX.Element { | ||
| const [open, setOpen] = useState(false); | ||
| const { data: user, isLoading } = useUser(); |
There was a problem hiding this comment.
미리 ssr할때 prefetch하는 과정은 없나요? 처음부터 가지고 있으면 좋을거 같네요
|
|
||
| const handleLogout = () => { | ||
| localStorage.removeItem("token"); | ||
| queryClient.removeQueries({ queryKey: ["me"] }); |
There was a problem hiding this comment.
무슨 역할을 하는 함수인지 이해하고 있나요?
queryClient의 캐시가 어떻게 쌓이는 구조인지 공부해보면 좋을거같아요.
There was a problem hiding this comment.
queryClient로 로그인을 쓴 이유가 추후에 유저가 상품을 등록하거나 상품을 구매했을때 그 유저가 가지고있는 상품에대해 업데이트?하기 위해서 그렇게 의도했는데 그렇게되면 나중에 자기가 뭔글을썻는지 기타등등에대해서는 굳이 재요청할 필요가 없다고생각이드는데 그래서 로그아웃시 그 유저에대한 정보를 지워야한다고 생각이들어서 저렇게 썻는데 제가 잘못이해하고있는 부분이 있을까요??
There was a problem hiding this comment.
아뇨 틀렸다는건 아니고요. react-query를 사용하셨길래 내부적으로 좀 어떻게 동작하는지 이해 하고 쓰시면 좋을꺼 같아서 의견드렸습니다~
There was a problem hiding this comment.
넵 알겠습니다 빠른 답변 감사합니다
|
|
||
| // https://vite.dev/config/ | ||
| export default defineConfig({ | ||
| plugins: [react()], |
There was a problem hiding this comment.
vite가 뭐고 어떤 역할을 하는지 조사를 해보면 좋겠어요
요구사항
기본
심화
주요 변경사항
스크린샷
멘토에게