diff --git a/docs/framework/solid/reference/functions/queryOptions.md b/docs/framework/solid/reference/functions/queryOptions.md index bfa6e963358..10447972e7a 100644 --- a/docs/framework/solid/reference/functions/queryOptions.md +++ b/docs/framework/solid/reference/functions/queryOptions.md @@ -11,7 +11,7 @@ redirect_from: function queryOptions(options): QueryOptions & object & QueryKeyWithDataTag; ``` -Defined in: [queryOptions.ts:90](https://github.com/TanStack/query/blob/main/packages/solid-query/src/queryOptions.ts#L90) +Defined in: [queryOptions.ts:89](https://github.com/TanStack/query/blob/main/packages/solid-query/src/queryOptions.ts#L89) You can generally pass everything to `queryOptions` that you can also pass to `useQuery`. These options can be shared across hooks and imperative APIs such as `queryClient.query`. `options.queryKey` is required and @@ -53,8 +53,7 @@ The same options object, typed so that `queryKey` carries the inferred data type ### See - - [useQuery](useQuery.md) to run a query with these options. - - [The Query Options API](https://tkdodo.eu/blog/the-query-options-api) for more on this pattern. +[useQuery](useQuery.md) to run a query with these options. ### Example @@ -90,7 +89,7 @@ function Posts() { function queryOptions(options): QueryOptions & object & QueryKeyWithDataTag; ``` -Defined in: [queryOptions.ts:141](https://github.com/TanStack/query/blob/main/packages/solid-query/src/queryOptions.ts#L141) +Defined in: [queryOptions.ts:139](https://github.com/TanStack/query/blob/main/packages/solid-query/src/queryOptions.ts#L139) You can generally pass everything to `queryOptions` that you can also pass to `useQuery`. These options can be shared across hooks and imperative APIs such as `queryClient.query`. `options.queryKey` is required and @@ -130,8 +129,7 @@ The same options object, typed so that `queryKey` carries the inferred data type ### See - - [useQuery](useQuery.md) to run a query with these options. - - [The Query Options API](https://tkdodo.eu/blog/the-query-options-api) for more on this pattern. +[useQuery](useQuery.md) to run a query with these options. ### Example diff --git a/packages/solid-query/src/queryOptions.ts b/packages/solid-query/src/queryOptions.ts index 22ab259c0a6..5a5bbb71753 100644 --- a/packages/solid-query/src/queryOptions.ts +++ b/packages/solid-query/src/queryOptions.ts @@ -56,7 +56,6 @@ export type DefinedInitialDataOptions< * This overload is selected when `initialData` is set, so the resulting `data` is never `undefined`. * * @see {@link useQuery} to run a query with these options. - * @see [The Query Options API](https://tkdodo.eu/blog/the-query-options-api) for more on this pattern. * @param options - The {@link DefinedInitialDataOptions} to use — everything you can pass to `useQuery`, with `initialData` set. * @returns The same options object, typed so that `queryKey` carries the inferred data type. * @@ -107,7 +106,6 @@ export function queryOptions< * is the query key to generate options for. * * @see {@link useQuery} to run a query with these options. - * @see [The Query Options API](https://tkdodo.eu/blog/the-query-options-api) for more on this pattern. * @param options - The {@link UndefinedInitialDataOptions} to use — everything you can pass to `useQuery`. * @returns The same options object, typed so that `queryKey` carries the inferred data type. *