T
TanStack2y ago
wise-white

useQuery vs useMutation

Hello!! I would like your opinion and how you handle the following scenario. when you want to perform an API call on a button click do you use useQuery refetch option or you go for useMutation? if useMutation is the way to go, when you call the refetch on useQuery what are the cases?
1 Reply
other-emerald
other-emerald2y ago
for Get requests, useQuery will be used

Did you find this page helpful?