-
Notifications
You must be signed in to change notification settings - Fork 5
refactor/wineid #75
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
refactor/wineid #75
Conversation
|
Someone is attempting to deploy a commit to the 626-ju's projects Team on Vercel. A member of the Team first needs to authorize it. |
| async function postLike(reviewId: number) { | ||
| console.log('μ’μμ!'); | ||
| return apiClient.post(`${process.env.NEXT_PUBLIC_TEAM}/reviews/${reviewId}/like`); | ||
| } | ||
|
|
||
| async function deleteLike(reviewId: number) { | ||
| console.log('μ«μ΄μ!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ν μ€νΈ μλ£λμλ©΄ μ½μ μμ λΆνλ립λλ€!
| setIsClicked((prev) => !prev); //미리 μ λ°μ΄νΈ | ||
| //μ’μμ api μμ² λ³΄λ΄κΈ° | ||
| // /{teamId}/reviews/{id}/like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ¬μ©μ κ³ λ €ν΄μ μ’μμ μ²λ¦¬κ° 미리 λλκ² μ’λ€μ
π¦ Pull Request
π μμ½(Summary)
β¨λ€λ₯Έ κ³³μμ ssrν μ€νΈ κ°μ΄ μ§ννλ€κ° κΈνκ² λΈλμΉ μλ‘ νκ³ prλ£λκ±°λΌ
μ½λκ° μ’ μμ¬μκ±°λ μ§κΈμ νμ μλ μ½λκ° μ£Όμμ²λ¦¬ λμ΄ μμ μ μμ΅λλ€.
ssr μ²λ¦¬ μ€λ λ©ν λ§ λ°κ³ νμ€ν λλλ©΄ νλ²μ μμ νλλ‘ νκ² μ΅λλ€.β¨
1)μμΈ μ¬μ§ μ λλ‘ λͺ» λΆλ¬μ¬ λ μ²λ¦¬
2)리뷰 μμ λ μ²λ¦¬ -> μμμμ μΌμͺ½μΌλ‘ μΉμ°μ³μ Έ μλλ° μ€μμΌλ‘ νλ κ² λμ κ² κ°μ κ·Έλ κ² νμ€λΉλ€.
3)μΈλΆ μ΄λ―Έμ§ λ°μμ¬ λ νμν μ€μ
4)λ²νΌ μ’μμ μ«μ΄μ μ²λ¦¬
5)리뷰 λ©°μΉ μ μ λ¬λ Έλμ§ μλμκ° κ³μ°
π¬ 곡μ μ¬ν to 리뷰μ΄
ποΈ κ΄λ ¨ μ΄μ
πΈ μ€ν¬λ¦°μ·
1)μμΈ μ΄λ―Έμ§ λ체

2)μ΄λ―Έμ§μ μ¬λ°λ₯Έ κ²½λ‘ λ€μ΄κ°μ λ

3)리뷰 μμ λ

7)μλμκ° κ³μ° ν¨μ μΆκ°

β 체ν¬λ¦¬μ€νΈ