Skip to content

Commit 5ebc68a

Browse files
authored
docs(useQuery): remove reference to setQueryData from onSuccess doc (#4585)
onSuccess ISN'T called after setQueryData since PR #2969
1 parent 24ac9f9 commit 5ebc68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export interface QueryObserverOptions<
203203
*/
204204
notifyOnChangeProps?: Array<keyof InfiniteQueryObserverResult> | 'all'
205205
/**
206-
* This callback will fire any time the query successfully fetches new data or the cache is updated via `setQueryData`.
206+
* This callback will fire any time the query successfully fetches new data.
207207
*/
208208
onSuccess?: (data: TData) => void
209209
/**

0 commit comments

Comments
 (0)