Open utterances-bot opened 3 months ago
phút 25:36, dùng uniqueKey param cho cách 1 cũng dc á ad
queryKey: ['account-profile', uniqueKey]
anh ơi, em để ý cái Card component anh có dùng x-chunk nó là gì thế ạ?
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õ
a có thể tham khảo theo cách này của e cho phần react query:
'
export const useGetAccount = (options?: UseQueryOptions
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
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