Capítulo 74 de 80
A type-preserving identity function — queryOptions({ queryKey, ...options }) accepts everything useQuery does and returns it essentially unchanged at runtime, existing purely so the same options object can be shared across useQuery, useSuspenseQuery, useQueries, and queryClient.query()/setQueryData() with inference intact.
queryKey.useQuery option is accepted and passed through.