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.
Feature
Closes #21
Description
좋아요 버튼을 연속해서 눌렀을 때 좋아요가 여러 개 증가하는 문제
1. 사용자가 좋아요 버튼을 수없이 누를때 마다 api 요청이 계속되는 문제 해결
{ revalidate: false, rollbackOnError: true }
2. 연속적으로 들어가는 API 요청이 데이터 베이스에 중복해서 등록되는 문제 해결
트랜젝션과 유니크키를 사용하여 중복데이터를 체크하고 이미 데이터가 존재하면 에러를, 존재하지않으면 추가하는 방식으로 변경.3. 좋아요 버튼을 명확하게 관리하기 위해 추가적인 작업
Reference