Correct way of fetch with query? - TanStack