Fix: Blog Post "Like 👍" functionality #139
Labels
💻 aspect: code
bug
Something isn't working
duplicate
This issue or pull request already exists
🛠 goal: fix
good first issue
Good for newcomers
🟨 priority: medium
🏁 status: ready for dev
Description
As mentioned in #116, the blog's "Like 👍" functionality needs improvement.
Tasks
Currently, the
usePostLikeBlog
function (hooks/Queries/blog/usePostLikeBlog
) currently usesaxios
only to make aPOST
request. Here's what you should change:usePostLikeBlog
function should be moved tohooks/Mutations/blog/usePostLikeBlog
since it's a mutation and not a queryaxios
, use a privateAxioswith
@tanstack/react-query(reference:
hooks/Mutations/shop/useMakeOrder`)The text was updated successfully, but these errors were encountered: