Skip to content

Commit 153ce78

Browse files
committed
docs: remove callbacks from useQuery
1 parent c561e8b commit 153ce78

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

docs/react/reference/useQuery.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ const {
3838
initialDataUpdatedAt,
3939
meta,
4040
notifyOnChangeProps,
41-
onError,
42-
onSettled,
43-
onSuccess,
4441
placeholderData,
4542
queryKeyHashFn,
4643
refetchInterval,
@@ -134,15 +131,6 @@ const {
134131
- If set to `['data', 'error']` for example, the component will only re-render when the `data` or `error` properties change.
135132
- If set to `"all"`, the component will opt-out of smart tracking and re-render whenever a query is updated.
136133
- By default, access to properties will be tracked, and the component will only re-render when one of the tracked properties change.
137-
- `onSuccess: (data: TData) => void`
138-
- Optional
139-
- This function will fire any time the query successfully fetches new data.
140-
- `onError: (error: TError) => void`
141-
- Optional
142-
- This function will fire if the query encounters an error and will be passed the error.
143-
- `onSettled: (data?: TData, error?: TError) => void`
144-
- Optional
145-
- This function will fire any time the query is either successfully fetched or errors and be passed either the data or error.
146134
- `select: (data: TData) => unknown`
147135
- Optional
148136
- This option can be used to transform or select a part of the data returned by the query function. It affects the returned `data` value, but does not affect what gets stored in the query cache.

0 commit comments

Comments
 (0)