Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hotfix] 레이싱 게임 스페이스바 이벤트 리스너를 document에 직접 걸지 않고 frontRef를 통해서 등록 및 삭제 #68

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

minani-0621
Copy link
Contributor

✅ 구현사항

  • 스페이스바 이벤트 리스너를 document에 직접 지정하게 되면 리액트 개발 원칙에 위배되기도 하고, 적절하지 않은 상황에 이벤트가 발생할 수 있기 때문에 frontRef를 통해서 gameStatus에 기반하여 이벤트 리스너 추가 및 삭제 구현

@minani-0621 minani-0621 merged commit 606201f into develop Aug 23, 2024
1 check passed
@minani-0621 minani-0621 deleted the hotfix/racingGameSpacebar branch August 23, 2024 09:12
@minani-0621 minani-0621 added the Hotfix hotfix label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hotfix hotfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant