You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/reference/useQuery.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,8 +73,8 @@ const result = useQuery({
73
73
- **Required, but only if no default query function has been defined** See [Default Query Function](../guides/default-query-function) for more information.
74
74
- The function that the query will use to request data.
75
75
- Receives a `QueryFunctionContext` object with the following variables:
76
-
- `queryKey:QueryKey`
77
-
- Must return a promise that will either resolves data or throws an error.
76
+
- `queryKey:EnsuredQueryKey`: the queryKey, guaranteed to be an Array
77
+
- Must return a promise that will either resolve data or throw an error.
78
78
- `enabled: boolean`
79
79
- Set this to `false` to disable this query from automatically running.
80
80
- Can be used for [Dependent Queries](../guides/dependent-queries).
0 commit comments