We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 255f7c6 commit 8575210Copy full SHA for 8575210
docs/src/pages/reference/useQuery.md
@@ -136,7 +136,7 @@ const result = useQuery({
136
- If set to `['isStale']` for example, the component will not re-render when the `isStale` property changes.
137
- `onSuccess: (data: TData) => void`
138
- Optional
139
- - This function will fire any time the query successfully fetches new data.
+ - This function will fire any time the query successfully fetches new data or the cache is updated via `setQueryData`.
140
- `onError: (error: TError) => void`
141
142
- This function will fire if the query encounters an error and will be passed the error.
0 commit comments