Closed ericeya closed 7 months ago
There is currently a logic that changes the empty heart icon to filled heart icon if the logged in user already likes the post.
Add a logic for user to 'un-like' the post.
eventListner
delete
/:postId/user/:userId
refresh the page
There is currently a logic that changes the empty heart icon to filled heart icon if the logged in user already likes the post.
Add a logic for user to 'un-like' the post.
eventListner
to the ❤️ icon to do an api call to userRoutes.jsdelete
request for/:postId/user/:userId
refresh the page
function whenever the UserLikes table gets updated so that each post will get updated Likes-counter and heart icon updated.