duocmmo / edu-comments

Quản lý các bình luận trên edu.duthanhduoc.com
https://edu.duthanhduoc.com/
0 stars 1 forks source link

https://edu.duthanhduoc.com/learn/Next.Js-Super?lessonId=516 #38

Open utterances-bot opened 3 months ago

utterances-bot commented 3 months ago

Khu vực học tập | Được Edu

Được chỉ cung cấp các khóa học lập trình online chất lượng, nói không với khóa lởm!

https://edu.duthanhduoc.com/learn/Next.Js-Super?lessonId=516

mikikimi commented 3 months ago

phút 25:36, dùng uniqueKey param cho cách 1 cũng dc á ad queryKey: ['account-profile', uniqueKey]

AnPham112 commented 1 month ago

anh ơi, em để ý cái Card component anh có dùng x-chunk nó là gì thế ạ?

duthanhduoc commented 1 month ago

anh ơi, em để ý cái Card component anh có dùng x-chunk nó là gì thế ạ?

Thuộc tính có sẵn khi anh copy UI từ Shadcn UI thôi em. Đây là thuộc tính mà tác giả tự thêm vào phục vụ ý đồ tính toán gì đó cho UI của tác giả.

Cái này anh cũng k rõ

lenhattan2313 commented 1 month ago

a có thể tham khảo theo cách này của e cho phần react query: ' export const useGetAccount = (options?: UseQueryOptions) => useQuery({ queryKey: ["account_profile"], queryFn: accountActions.getMe, ...options, }); ' a có thể pass onSuccess or any props của useQuery vào options

duthanhduoc commented 1 month ago

a có thể tham khảo theo cách này của e cho phần react query: ' export const useGetAccount = (options?: UseQueryOptions) => useQuery({ queryKey: ["account_profile"], queryFn: accountActions.getMe, ...options, }); ' a có thể pass onSuccess or any props của useQuery vào options

Version tanstack query anh quay là V5 k có onSuccess đâu em, cách của em chỉ work ở V4 thôi https://tanstack.com/query/latest/docs/framework/react/reference/useQuery