Use this to create a data object that can be used as placeholderData or initialData.
This helper is intended to be used with QueryClients useInfiniteQuery function.
Optional applyOptional callOptional onOptional pageOptional sanitizeThe option allows you to remove fields or otherwise customize the input used to generate the query key. By default, we will remove the pageParamKey from the input. If this is provided, we will use this result instead.
Optional transport?: TransportOptional onThis function is intended to be used with TanStack Query's useMutation API.
Optional options: { Optional callOptional onOptional transport?: TransportOptional context: QueryFunctionContext<ConnectQueryKey<I>, any>Optional oncreateUseQueryOptions is intended to be used with useQuery, but is not a hook. Since hooks cannot be called conditionally (or in loops), it can sometimes be helpful to use createUseQueryOptions to prepare an input to TanStack's useQuery API.
The caveat being that if you go the route of using createUseQueryOptions you must provide transport. You can get transport from the useTransport export, or make sure these functions were generated with createQueryService() with a transport provided.
Optional input: typeof disableQuery | PartialMessage<I>Optional options: { Optional callOptional getOptional onOptional transport?: TransportOptional onOptional placeholderOptional context: QueryFunctionContext<ConnectQueryKey<I>, any>This helper is useful for getting query keys matching a wider set of queries associated to this Connect Service, per TanStack Query's partial matching mechanism.
This helper is useful to manually compute the queryKey sent to TanStack Query. Otherwise, this has no side effects.
Optional input: typeof disableQuery | PartialMessage<I>This is the metadata associated with this method.
This helper is intended to be used with QueryClients setQueriesData function.
This helper is intended to be used with QueryClients setQueryData function.
Optional input: PartialMessage<I>Generated using TypeDoc
The set of data and hooks that a unary method supports.