Skip to content

refactor: [TA-194] 인라인 함수 props 제거로 불필요한 리렌더링 방지 (useCallback/useMemo)#90

Merged
seorinn merged 3 commits into
developfrom
TA-194-useCallback-useMemo-optimization
May 11, 2026
Merged

refactor: [TA-194] 인라인 함수 props 제거로 불필요한 리렌더링 방지 (useCallback/useMemo)#90
seorinn merged 3 commits into
developfrom
TA-194-useCallback-useMemo-optimization

Conversation

@seorinn

@seorinn seorinn commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • FilterBar: handleFilterChange, getDefaultFilters, handleSetFree, handleSetDiscount, handleClearType, handleResetFilter, handleFilteruseCallback으로 메모이제이션, BtnOnOff 인라인 함수 props 제거
  • PromotionBox: savePromotionFunc, onClickSave, openDetailPageuseCallback으로, getDDayText(data.endedAt) 결과를 useMemo로 메모이제이션
  • PhotographerBox: savePhotographerFunc, onClickSave, onClickPhotographeruseCallback으로, 닉네임 truncate 결과를 useMemo로 메모이제이션
  • JSX 내 onClick={() => fn()} 패턴을 onClick={fn} 직접 참조로 정리

Test plan

  • FilterBar: 무료/할인 토글 버튼 정상 동작 확인
  • FilterBar: 필터 초기화 버튼 정상 동작 확인
  • PromotionBox: 클립(저장) 버튼 동작 및 상세 페이지 이동 확인
  • PhotographerBox: 클립(저장) 버튼 동작 및 사진작가 페이지 이동 확인

Closes #17

@vercel

vercel Bot commented May 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
damaba Ready Ready Preview, Comment May 11, 2026 6:26am

@seorinn seorinn marked this pull request as ready for review May 11, 2026 06:28
@seorinn seorinn merged commit 8539a7a into develop May 11, 2026
3 checks passed
@seorinn seorinn deleted the TA-194-useCallback-useMemo-optimization branch May 11, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] 인라인 함수 props 제거로 불필요한 리렌더링 방지 (useCallback/useMemo)

1 participant