Controlled state mutation in useQuery - TanStack