You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hasNameError flag isn’t cleared on successful validation, so once set, the error persists even after entering a valid name.
consthandleNextClick=async()=>{try{constresult=awaitmutateSlangCheck(name);if(result.slangFlag){setHasNameError(true);nameInputRef.current?.focus();return;}setStep("content");}catch(error){makeToast("이름 확인 중 문제가 발생했어요. 잠시 후 다시 시도해주세요.","warning");}};
The getNextPageParam should return undefined instead of 0 when there is no next page, otherwise the infinite query will continue fetching with a cursor of 0. Change the return value to undefined or use nullish coalescing.
Why: Returning 0 as the next cursor causes the infinite query to refetch with a valid page parameter instead of stopping; using undefined correctly halts pagination.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
✨ PR 세부 내용
☑️ 체크리스트
🛠 기본 검사 항목
📸 스크린샷
✅ 리뷰 요구사항
사용자 이름 금칙어에 대한 에러 메시지를 이름 입력창 하단에 표시하는 것과 다음 버튼 근처에 표시하는 것 중, UX적으로 어떤 위치가 더 적절한지 조언해주시면 감사하겠습니다.
PR Type
Bug fix, Enhancement
Description
Add API call and mutation for name profanity check
Display error and block next on reserved names
Implement outside-click hook for modal closure
Fix infinite scroll by treating null cursor as zero
File Walkthrough