Skip to content

[4주차/조이] 워크북 제출합니다.#38

Open
aeongiing wants to merge 9 commits intoUMC-Inha:조이/mainfrom
aeongiing:main
Open

[4주차/조이] 워크북 제출합니다.#38
aeongiing wants to merge 9 commits intoUMC-Inha:조이/mainfrom
aeongiing:main

Conversation

@aeongiing
Copy link
Copy Markdown
Member

@aeongiing aeongiing commented Apr 8, 2026

✅ 워크북 체크리스트

  • 모든 핵심 키워드 정리를 마쳤나요?
  • 핵심 키워드에 대해 완벽히 이해하셨나요?
  • 이론 학습 이후 직접 실습을 해보는 시간을 가졌나요?
  • 미션을 수행하셨나요?
  • 미션을 기록하셨나요?

✅ 컨벤션 체크리스트

  • 디렉토리 구조 컨벤션을 잘 지켰나요?
  • pr 제목을 컨벤션에 맞게 작성하였나요?
  • pr에 해당되는 이슈를 연결하였나요?(중요)
  • 적절한 라벨을 설정하였나요?
  • 파트장에게 code review를 요청하기 위해 reviewer를 등록하였나요?
  • 닉네임/main 브랜치의 최신 상태를 반영하고 있는지 확인했나요?(매우 중요!)

📌 주안점

Comment thread mission/chapter04/mission02/src/hooks/useForm.ts Outdated
Comment thread mission/chapter04/mission01/src/hooks/useMovieDetail.ts Outdated
SignupResponseData,
} from '../types/auth';

const BASE_URL = 'http://localhost:8000/v1';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

URL이 코드에 그대로 하드코딩 되어 있습니다.
서버 주소는 유출 시 API 키 정도는 아니지만 해커가 의미 없는 요청을 수십 번 날리는 디도스 공격을 시도하거나,
봇을 돌려 비밀번호가 맞을 떄까지 시도하여 특정 유저의 비밀번호를 알아내는 등 보안 사고가 발생할 수 있습니다
서버 연산 자원과 사용자의 보안을 위해서 env 파일에 URL을 지정하고 API 키처럼 로드해서 사용하는건 어떨까요?

Copy link
Copy Markdown
Collaborator

@qkrdmsthff qkrdmsthff left a comment

Choose a reason for hiding this comment

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

LGTM 조이 ~ 피드백이 늦었습니다 슬슬 바빠지네요... 다음ㅈ 피드백은 조금 더 정성스레 작성해드릴게요 수고하셨습니다

Comment on lines +11 to +22
const load = async () => {
setIsLoading(true);
setError(null);
try {
const result = await fetchFn();
if (!cancelled) setData(result);
} catch {
if (!cancelled) setError('데이터를 불러오는 데 실패했습니다.');
} finally {
if (!cancelled) setIsLoading(false);
}
};
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.

새로운 fetchFn 이 들어올 때 이전 데이터가 그대로 남아있으면, UX 측면에서 깜빡이는 현상이 발생할 수 있습니다.
load 함수가 시작될 때, setData(null) 을 호출하여 상태를 초기화해 주면 좋을 것 같네요~

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.

5 participants