Skip to content

Commit

Permalink
docs: Update query-options.md (TanStack#6506)
Browse files Browse the repository at this point in the history
* Update query-options.md

I supposed it was a link to https://tanstack.com/query/v5/docs/react/typescript#typing-query-options

* Update query-options.md

Change to relative path

* Update query-options.md
  • Loading branch information
qqharry21 authored Dec 11, 2023
1 parent f093f4b commit b484fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/react/guides/query-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id: query-options
title: Query Options
---

One of the best ways to share `queryKey` and `queryFn` between multiple places, yet keep them co-located to one another, is to use the `queryOptions` helper. At runtime, this helper just returns whatever you pass into it, but it has a lot of advantages when using it [../guides/typescript#typing-query-options](with TypeScript). You can define all possible options for a query in one place, and you'll also get type inference and type safety for all of them.
One of the best ways to share `queryKey` and `queryFn` between multiple places, yet keep them co-located to one another, is to use the `queryOptions` helper. At runtime, this helper just returns whatever you pass into it, but it has a lot of advantages when using it [with TypeScript](../typescript#typing-query-options). You can define all possible options for a query in one place, and you'll also get type inference and type safety for all of them.

[//]: # 'Example1'

Expand Down

0 comments on commit b484fe5

Please sign in to comment.