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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ const {
33
33
initialDataUpdatedAt
34
34
isDataEqual,
35
35
keepPreviousData,
36
+
meta,
36
37
notifyOnChangeProps,
37
38
notifyOnChangePropsExclusions,
38
39
onError,
@@ -177,6 +178,9 @@ const result = useQuery({
177
178
- Set this to `true` if you want errors to be thrown in the render phase and propagate to the nearest error boundary
178
179
- Set this to `false` to disable `suspense`'s default behaviour of throwing errors to the error boundary.
179
180
- If set to a function, it will be passed the error and should return a boolean indicating whether to show the error in an error boundary (`true`) or return the error as state (`false`)
181
+
- `meta: Record<string, unknown>`
182
+
- Optional
183
+
- If set, stores additional information on the query cache entry that can be used as needed. It will be accessible wherever the `query` is available, and is also part of the `QueryFunctionContext` provided to the `queryFn`.
0 commit comments